forked from loafle/openapi-generator-original
fix return type and tempfolder
This commit is contained in:
@@ -59,7 +59,7 @@ namespace {{packageName}}.Client {
|
||||
}
|
||||
|
||||
set {
|
||||
if (!String.IsNullOrEmpty(value)) {
|
||||
if (String.IsNullOrEmpty(value)) {
|
||||
_tempFolderPath = value;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ namespace {{packageName}}.Api {
|
||||
if (((int)response.StatusCode) >= 400) {
|
||||
throw new ApiException ((int)response.StatusCode, "Error calling {{nickname}}: " + response.Content, response.Content);
|
||||
}
|
||||
{{#returnType}}return ({{{returnType}}}) ApiClient.Deserialize(response.Content, typeof({{{returnType}}}));{{/returnType}}{{^returnType}}
|
||||
{{#returnType}}return ({{{returnType}}}) ApiClient.Deserialize(response.Content, typeof({{{returnType}}}), response.Headers);{{/returnType}}{{^returnType}}
|
||||
return;{{/returnType}}
|
||||
}
|
||||
|
||||
|
||||
@@ -370,7 +370,7 @@ namespace IO.Swagger.Api {
|
||||
if (((int)response.StatusCode) >= 400) {
|
||||
throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByStatus: " + response.Content, response.Content);
|
||||
}
|
||||
return (List<Pet>) ApiClient.Deserialize(response.Content, typeof(List<Pet>));
|
||||
return (List<Pet>) ApiClient.Deserialize(response.Content, typeof(List<Pet>), response.Headers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -443,7 +443,7 @@ namespace IO.Swagger.Api {
|
||||
if (((int)response.StatusCode) >= 400) {
|
||||
throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByTags: " + response.Content, response.Content);
|
||||
}
|
||||
return (List<Pet>) ApiClient.Deserialize(response.Content, typeof(List<Pet>));
|
||||
return (List<Pet>) ApiClient.Deserialize(response.Content, typeof(List<Pet>), response.Headers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -519,7 +519,7 @@ namespace IO.Swagger.Api {
|
||||
if (((int)response.StatusCode) >= 400) {
|
||||
throw new ApiException ((int)response.StatusCode, "Error calling GetPetById: " + response.Content, response.Content);
|
||||
}
|
||||
return (Pet) ApiClient.Deserialize(response.Content, typeof(Pet));
|
||||
return (Pet) ApiClient.Deserialize(response.Content, typeof(Pet), response.Headers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace IO.Swagger.Api {
|
||||
if (((int)response.StatusCode) >= 400) {
|
||||
throw new ApiException ((int)response.StatusCode, "Error calling GetInventory: " + response.Content, response.Content);
|
||||
}
|
||||
return (Dictionary<String, int?>) ApiClient.Deserialize(response.Content, typeof(Dictionary<String, int?>));
|
||||
return (Dictionary<String, int?>) ApiClient.Deserialize(response.Content, typeof(Dictionary<String, int?>), response.Headers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -221,7 +221,7 @@ namespace IO.Swagger.Api {
|
||||
if (((int)response.StatusCode) >= 400) {
|
||||
throw new ApiException ((int)response.StatusCode, "Error calling PlaceOrder: " + response.Content, response.Content);
|
||||
}
|
||||
return (Order) ApiClient.Deserialize(response.Content, typeof(Order));
|
||||
return (Order) ApiClient.Deserialize(response.Content, typeof(Order), response.Headers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -297,7 +297,7 @@ namespace IO.Swagger.Api {
|
||||
if (((int)response.StatusCode) >= 400) {
|
||||
throw new ApiException ((int)response.StatusCode, "Error calling GetOrderById: " + response.Content, response.Content);
|
||||
}
|
||||
return (Order) ApiClient.Deserialize(response.Content, typeof(Order));
|
||||
return (Order) ApiClient.Deserialize(response.Content, typeof(Order), response.Headers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -439,7 +439,7 @@ namespace IO.Swagger.Api {
|
||||
if (((int)response.StatusCode) >= 400) {
|
||||
throw new ApiException ((int)response.StatusCode, "Error calling LoginUser: " + response.Content, response.Content);
|
||||
}
|
||||
return (string) ApiClient.Deserialize(response.Content, typeof(string));
|
||||
return (string) ApiClient.Deserialize(response.Content, typeof(string), response.Headers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -588,7 +588,7 @@ namespace IO.Swagger.Api {
|
||||
if (((int)response.StatusCode) >= 400) {
|
||||
throw new ApiException ((int)response.StatusCode, "Error calling GetUserByName: " + response.Content, response.Content);
|
||||
}
|
||||
return (User) ApiClient.Deserialize(response.Content, typeof(User));
|
||||
return (User) ApiClient.Deserialize(response.Content, typeof(User), response.Headers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace IO.Swagger.Client {
|
||||
}
|
||||
|
||||
set {
|
||||
if (!String.IsNullOrEmpty(value)) {
|
||||
if (String.IsNullOrEmpty(value)) {
|
||||
_tempFolderPath = value;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<Properties StartupItem="SwaggerClientTest.csproj">
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs">
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs">
|
||||
<Files>
|
||||
<File FileName="TestPet.cs" Line="1" Column="1" />
|
||||
<File FileName="TestPet.cs" Line="6" Column="25" />
|
||||
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/Category.cs" Line="1" Column="1" />
|
||||
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs" Line="1" Column="1" />
|
||||
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs" Line="1" Column="1" />
|
||||
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/Configuration.cs" Line="1" Column="1" />
|
||||
<File FileName="Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs" Line="791" Column="36" />
|
||||
</Files>
|
||||
</MonoDevelop.Ide.Workbench>
|
||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
|
||||
Reference in New Issue
Block a user