@@ -36,8 +36,8 @@ public class ApiEndpointsSDK: IApiEndpointsSDK
36
36
{
37
37
public SDKConfig Config { get ; private set ; }
38
38
private const string _language = "csharp" ;
39
- private const string _sdkVersion = "1.13.4 " ;
40
- private const string _sdkGenVersion = "2.101 .0" ;
39
+ private const string _sdkVersion = "1.13.5 " ;
40
+ private const string _sdkGenVersion = "2.107 .0" ;
41
41
private const string _openapiDocVersion = "0.3.0" ;
42
42
private string _serverUrl = "" ;
43
43
private ISpeakeasyHttpClient _defaultClient ;
@@ -131,7 +131,7 @@ public async Task<FindApiEndpointResponse> FindApiEndpointAsync(FindApiEndpointR
131
131
} ;
132
132
if ( ( response . StatusCode == 200 ) )
133
133
{
134
- if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
134
+ if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
135
135
{
136
136
response . ApiEndpoint = JsonConvert . DeserializeObject < ApiEndpoint > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
137
137
}
@@ -179,7 +179,7 @@ public async Task<GenerateOpenApiSpecForApiEndpointResponse> GenerateOpenApiSpec
179
179
} ;
180
180
if ( ( response . StatusCode == 200 ) )
181
181
{
182
- if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
182
+ if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
183
183
{
184
184
response . GenerateOpenApiSpecDiff = JsonConvert . DeserializeObject < GenerateOpenApiSpecDiff > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
185
185
}
@@ -226,7 +226,7 @@ public async Task<GeneratePostmanCollectionForApiEndpointResponse> GeneratePostm
226
226
} ;
227
227
if ( ( response . StatusCode == 200 ) )
228
228
{
229
- if ( Utilities . IsContentTypeMatch ( "application/octet-stream" , response . ContentType ) )
229
+ if ( Utilities . IsContentTypeMatch ( "application/octet-stream" , response . ContentType ) )
230
230
{
231
231
response . PostmanCollection = await httpResponse . Content . ReadAsByteArrayAsync ( ) ;
232
232
}
@@ -269,7 +269,7 @@ public async Task<GetAllApiEndpointsResponse> GetAllApiEndpointsAsync(GetAllApiE
269
269
} ;
270
270
if ( ( response . StatusCode == 200 ) )
271
271
{
272
- if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
272
+ if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
273
273
{
274
274
response . ApiEndpoints = JsonConvert . DeserializeObject < List < ApiEndpoint > > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
275
275
}
@@ -312,7 +312,7 @@ public async Task<GetAllForVersionApiEndpointsResponse> GetAllForVersionApiEndpo
312
312
} ;
313
313
if ( ( response . StatusCode == 200 ) )
314
314
{
315
- if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
315
+ if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
316
316
{
317
317
response . ApiEndpoints = JsonConvert . DeserializeObject < List < ApiEndpoint > > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
318
318
}
@@ -355,7 +355,7 @@ public async Task<GetApiEndpointResponse> GetApiEndpointAsync(GetApiEndpointRequ
355
355
} ;
356
356
if ( ( response . StatusCode == 200 ) )
357
357
{
358
- if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
358
+ if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
359
359
{
360
360
response . ApiEndpoint = JsonConvert . DeserializeObject < ApiEndpoint > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
361
361
}
@@ -411,7 +411,7 @@ public async Task<UpsertApiEndpointResponse> UpsertApiEndpointAsync(UpsertApiEnd
411
411
} ;
412
412
if ( ( response . StatusCode == 200 ) )
413
413
{
414
- if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
414
+ if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
415
415
{
416
416
response . ApiEndpoint = JsonConvert . DeserializeObject < ApiEndpoint > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
417
417
}
0 commit comments