diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/CSharpClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/CSharpClientCodegen.java
index 4f7ad02b95..a200c2f7c8 100644
--- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/CSharpClientCodegen.java
+++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/CSharpClientCodegen.java
@@ -163,8 +163,24 @@ public class CSharpClientCodegen extends DefaultCodegen implements CodegenConfig
@Override
public String toParamName(String name) {
- // should be the same as variable name
- return toVarName(name);
+ // replace - with _ e.g. created-at => created_at
+ name = name.replaceAll("-", "_");
+
+ // if it's all uppper case, do nothing
+ if (name.matches("^[A-Z_]*$")) {
+ return name;
+ }
+
+ // camelize(lower) the variable name
+ // pet_id => petId
+ name = camelize(name, true);
+
+ // for reserved word or word starting with number, append _
+ if (reservedWords.contains(name) || name.matches("^\\d.*")) {
+ name = escapeReservedWord(name);
+ }
+
+ return name;
}
@Override
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs
index 4e6cc56fd1..609ea7326e 100644
--- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/PetApi.cs
@@ -14,124 +14,124 @@ namespace IO.Swagger.Api {
///
/// Update an existing pet
///
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- void UpdatePet (Pet Body);
+ void UpdatePet (Pet body);
///
/// Update an existing pet
///
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- Task UpdatePetAsync (Pet Body);
+ Task UpdatePetAsync (Pet body);
///
/// Add a new pet to the store
///
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- void AddPet (Pet Body);
+ void AddPet (Pet body);
///
/// Add a new pet to the store
///
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- Task AddPetAsync (Pet Body);
+ Task AddPetAsync (Pet body);
///
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
///
- /// Status values that need to be considered for filter
+ /// Status values that need to be considered for filter
/// List
- List FindPetsByStatus (List Status);
+ List FindPetsByStatus (List status);
///
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
///
- /// Status values that need to be considered for filter
+ /// Status values that need to be considered for filter
/// List
- Task> FindPetsByStatusAsync (List Status);
+ Task> FindPetsByStatusAsync (List status);
///
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
- /// Tags to filter by
+ /// Tags to filter by
/// List
- List FindPetsByTags (List Tags);
+ List FindPetsByTags (List tags);
///
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
- /// Tags to filter by
+ /// Tags to filter by
/// List
- Task> FindPetsByTagsAsync (List Tags);
+ Task> FindPetsByTagsAsync (List tags);
///
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
- /// ID of pet that needs to be fetched
+ /// ID of pet that needs to be fetched
/// Pet
- Pet GetPetById (long? PetId);
+ Pet GetPetById (long? petId);
///
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
- /// ID of pet that needs to be fetched
+ /// ID of pet that needs to be fetched
/// Pet
- Task GetPetByIdAsync (long? PetId);
+ Task GetPetByIdAsync (long? petId);
///
/// Updates a pet in the store with form data
///
- /// ID of pet that needs to be updated
- /// Updated name of the pet
- /// Updated status of the pet
+ /// ID of pet that needs to be updated
+ /// Updated name of the pet
+ /// Updated status of the pet
///
- void UpdatePetWithForm (string PetId, string Name, string Status);
+ void UpdatePetWithForm (string petId, string name, string status);
///
/// Updates a pet in the store with form data
///
- /// ID of pet that needs to be updated
- /// Updated name of the pet
- /// Updated status of the pet
+ /// ID of pet that needs to be updated
+ /// Updated name of the pet
+ /// Updated status of the pet
///
- Task UpdatePetWithFormAsync (string PetId, string Name, string Status);
+ Task UpdatePetWithFormAsync (string petId, string name, string status);
///
/// Deletes a pet
///
- ///
- /// Pet id to delete
+ ///
+ /// Pet id to delete
///
- void DeletePet (string ApiKey, long? PetId);
+ void DeletePet (string apiKey, long? petId);
///
/// Deletes a pet
///
- ///
- /// Pet id to delete
+ ///
+ /// Pet id to delete
///
- Task DeletePetAsync (string ApiKey, long? PetId);
+ Task DeletePetAsync (string apiKey, long? petId);
///
/// uploads an image
///
- /// ID of pet to update
- /// Additional data to pass to server
- /// file to upload
+ /// ID of pet to update
+ /// Additional data to pass to server
+ /// file to upload
///
- void UploadFile (long? PetId, string AdditionalMetadata, FileStream File);
+ void UploadFile (long? petId, string additionalMetadata, FileStream file);
///
/// uploads an image
///
- /// ID of pet to update
- /// Additional data to pass to server
- /// file to upload
+ /// ID of pet to update
+ /// Additional data to pass to server
+ /// file to upload
///
- Task UploadFileAsync (long? PetId, string AdditionalMetadata, FileStream File);
+ Task UploadFileAsync (long? petId, string additionalMetadata, FileStream file);
}
@@ -189,9 +189,9 @@ namespace IO.Swagger.Api {
///
/// Update an existing pet
///
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- public void UpdatePet (Pet Body) {
+ public void UpdatePet (Pet body) {
@@ -208,7 +208,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -227,9 +227,9 @@ namespace IO.Swagger.Api {
///
/// Update an existing pet
///
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- public async Task UpdatePetAsync (Pet Body) {
+ public async Task UpdatePetAsync (Pet body) {
@@ -246,7 +246,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -264,9 +264,9 @@ namespace IO.Swagger.Api {
///
/// Add a new pet to the store
///
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- public void AddPet (Pet Body) {
+ public void AddPet (Pet body) {
@@ -283,7 +283,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -302,9 +302,9 @@ namespace IO.Swagger.Api {
///
/// Add a new pet to the store
///
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- public async Task AddPetAsync (Pet Body) {
+ public async Task AddPetAsync (Pet body) {
@@ -321,7 +321,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -339,9 +339,9 @@ namespace IO.Swagger.Api {
///
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
///
- /// Status values that need to be considered for filter
+ /// Status values that need to be considered for filter
/// List
- public List FindPetsByStatus (List Status) {
+ public List FindPetsByStatus (List status) {
@@ -355,7 +355,7 @@ namespace IO.Swagger.Api {
var fileParams = new Dictionary();
String postBody = null;
- if (Status != null) queryParams.Add("status", ApiClient.ParameterToString(Status)); // query parameter
+ if (status != null) queryParams.Add("status", ApiClient.ParameterToString(status)); // query parameter
@@ -376,9 +376,9 @@ namespace IO.Swagger.Api {
///
/// Finds Pets by status Multiple status values can be provided with comma seperated strings
///
- /// Status values that need to be considered for filter
+ /// Status values that need to be considered for filter
/// List
- public async Task> FindPetsByStatusAsync (List Status) {
+ public async Task> FindPetsByStatusAsync (List status) {
@@ -392,7 +392,7 @@ namespace IO.Swagger.Api {
var fileParams = new Dictionary();
String postBody = null;
- if (Status != null) queryParams.Add("status", ApiClient.ParameterToString(Status)); // query parameter
+ if (status != null) queryParams.Add("status", ApiClient.ParameterToString(status)); // query parameter
@@ -412,9 +412,9 @@ namespace IO.Swagger.Api {
///
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
- /// Tags to filter by
+ /// Tags to filter by
/// List
- public List FindPetsByTags (List Tags) {
+ public List FindPetsByTags (List tags) {
@@ -428,7 +428,7 @@ namespace IO.Swagger.Api {
var fileParams = new Dictionary();
String postBody = null;
- if (Tags != null) queryParams.Add("tags", ApiClient.ParameterToString(Tags)); // query parameter
+ if (tags != null) queryParams.Add("tags", ApiClient.ParameterToString(tags)); // query parameter
@@ -449,9 +449,9 @@ namespace IO.Swagger.Api {
///
/// Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
///
- /// Tags to filter by
+ /// Tags to filter by
/// List
- public async Task> FindPetsByTagsAsync (List Tags) {
+ public async Task> FindPetsByTagsAsync (List tags) {
@@ -465,7 +465,7 @@ namespace IO.Swagger.Api {
var fileParams = new Dictionary();
String postBody = null;
- if (Tags != null) queryParams.Add("tags", ApiClient.ParameterToString(Tags)); // query parameter
+ if (tags != null) queryParams.Add("tags", ApiClient.ParameterToString(tags)); // query parameter
@@ -485,18 +485,18 @@ namespace IO.Swagger.Api {
///
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
- /// ID of pet that needs to be fetched
+ /// ID of pet that needs to be fetched
/// Pet
- public Pet GetPetById (long? PetId) {
+ public Pet GetPetById (long? petId) {
- // verify the required parameter 'PetId' is set
- if (PetId == null) throw new ApiException(400, "Missing required parameter 'PetId' when calling GetPetById");
+ // verify the required parameter 'petId' is set
+ if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling GetPetById");
var path = "/pet/{petId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(PetId));
+ path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
var queryParams = new Dictionary();
@@ -525,18 +525,18 @@ namespace IO.Swagger.Api {
///
/// Find pet by ID Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
- /// ID of pet that needs to be fetched
+ /// ID of pet that needs to be fetched
/// Pet
- public async Task GetPetByIdAsync (long? PetId) {
+ public async Task GetPetByIdAsync (long? petId) {
- // verify the required parameter 'PetId' is set
- if (PetId == null) throw new ApiException(400, "Missing required parameter 'PetId' when calling GetPetById");
+ // verify the required parameter 'petId' is set
+ if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling GetPetById");
var path = "/pet/{petId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(PetId));
+ path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
var queryParams = new Dictionary();
@@ -564,20 +564,20 @@ namespace IO.Swagger.Api {
///
/// Updates a pet in the store with form data
///
- /// ID of pet that needs to be updated
- /// Updated name of the pet
- /// Updated status of the pet
+ /// ID of pet that needs to be updated
+ /// Updated name of the pet
+ /// Updated status of the pet
///
- public void UpdatePetWithForm (string PetId, string Name, string Status) {
+ public void UpdatePetWithForm (string petId, string name, string status) {
- // verify the required parameter 'PetId' is set
- if (PetId == null) throw new ApiException(400, "Missing required parameter 'PetId' when calling UpdatePetWithForm");
+ // verify the required parameter 'petId' is set
+ if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UpdatePetWithForm");
var path = "/pet/{petId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(PetId));
+ path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
var queryParams = new Dictionary();
@@ -588,8 +588,8 @@ namespace IO.Swagger.Api {
- if (Name != null) formParams.Add("name", ApiClient.ParameterToString(Name)); // form parameter
- if (Status != null) formParams.Add("status", ApiClient.ParameterToString(Status)); // form parameter
+ if (name != null) formParams.Add("name", ApiClient.ParameterToString(name)); // form parameter
+ if (status != null) formParams.Add("status", ApiClient.ParameterToString(status)); // form parameter
@@ -609,20 +609,20 @@ namespace IO.Swagger.Api {
///
/// Updates a pet in the store with form data
///
- /// ID of pet that needs to be updated
- /// Updated name of the pet
- /// Updated status of the pet
+ /// ID of pet that needs to be updated
+ /// Updated name of the pet
+ /// Updated status of the pet
///
- public async Task UpdatePetWithFormAsync (string PetId, string Name, string Status) {
+ public async Task UpdatePetWithFormAsync (string petId, string name, string status) {
- // verify the required parameter 'PetId' is set
- if (PetId == null) throw new ApiException(400, "Missing required parameter 'PetId' when calling UpdatePetWithForm");
+ // verify the required parameter 'petId' is set
+ if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UpdatePetWithForm");
var path = "/pet/{petId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(PetId));
+ path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
var queryParams = new Dictionary();
@@ -633,8 +633,8 @@ namespace IO.Swagger.Api {
- if (Name != null) formParams.Add("name", ApiClient.ParameterToString(Name)); // form parameter
- if (Status != null) formParams.Add("status", ApiClient.ParameterToString(Status)); // form parameter
+ if (name != null) formParams.Add("name", ApiClient.ParameterToString(name)); // form parameter
+ if (status != null) formParams.Add("status", ApiClient.ParameterToString(status)); // form parameter
@@ -653,19 +653,19 @@ namespace IO.Swagger.Api {
///
/// Deletes a pet
///
- ///
- /// Pet id to delete
+ ///
+ /// Pet id to delete
///
- public void DeletePet (string ApiKey, long? PetId) {
+ public void DeletePet (string apiKey, long? petId) {
- // verify the required parameter 'PetId' is set
- if (PetId == null) throw new ApiException(400, "Missing required parameter 'PetId' when calling DeletePet");
+ // verify the required parameter 'petId' is set
+ if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling DeletePet");
var path = "/pet/{petId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(PetId));
+ path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
var queryParams = new Dictionary();
@@ -675,7 +675,7 @@ namespace IO.Swagger.Api {
String postBody = null;
- if (ApiKey != null) headerParams.Add("api_key", ApiClient.ParameterToString(ApiKey)); // header parameter
+ if (apiKey != null) headerParams.Add("api_key", ApiClient.ParameterToString(apiKey)); // header parameter
@@ -696,19 +696,19 @@ namespace IO.Swagger.Api {
///
/// Deletes a pet
///
- ///
- /// Pet id to delete
+ ///
+ /// Pet id to delete
///
- public async Task DeletePetAsync (string ApiKey, long? PetId) {
+ public async Task DeletePetAsync (string apiKey, long? petId) {
- // verify the required parameter 'PetId' is set
- if (PetId == null) throw new ApiException(400, "Missing required parameter 'PetId' when calling DeletePet");
+ // verify the required parameter 'petId' is set
+ if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling DeletePet");
var path = "/pet/{petId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(PetId));
+ path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
var queryParams = new Dictionary();
@@ -718,7 +718,7 @@ namespace IO.Swagger.Api {
String postBody = null;
- if (ApiKey != null) headerParams.Add("api_key", ApiClient.ParameterToString(ApiKey)); // header parameter
+ if (apiKey != null) headerParams.Add("api_key", ApiClient.ParameterToString(apiKey)); // header parameter
@@ -738,20 +738,20 @@ namespace IO.Swagger.Api {
///
/// uploads an image
///
- /// ID of pet to update
- /// Additional data to pass to server
- /// file to upload
+ /// ID of pet to update
+ /// Additional data to pass to server
+ /// file to upload
///
- public void UploadFile (long? PetId, string AdditionalMetadata, FileStream File) {
+ public void UploadFile (long? petId, string additionalMetadata, FileStream file) {
- // verify the required parameter 'PetId' is set
- if (PetId == null) throw new ApiException(400, "Missing required parameter 'PetId' when calling UploadFile");
+ // verify the required parameter 'petId' is set
+ if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UploadFile");
var path = "/pet/{petId}/uploadImage";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(PetId));
+ path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
var queryParams = new Dictionary();
@@ -762,8 +762,8 @@ namespace IO.Swagger.Api {
- if (AdditionalMetadata != null) formParams.Add("additionalMetadata", ApiClient.ParameterToString(AdditionalMetadata)); // form parameter
- if (File != null) fileParams.Add("file", ApiClient.ParameterToString(File));
+ if (additionalMetadata != null) formParams.Add("additionalMetadata", ApiClient.ParameterToString(additionalMetadata)); // form parameter
+ if (file != null) fileParams.Add("file", ApiClient.ParameterToString(file));
@@ -783,20 +783,20 @@ namespace IO.Swagger.Api {
///
/// uploads an image
///
- /// ID of pet to update
- /// Additional data to pass to server
- /// file to upload
+ /// ID of pet to update
+ /// Additional data to pass to server
+ /// file to upload
///
- public async Task UploadFileAsync (long? PetId, string AdditionalMetadata, FileStream File) {
+ public async Task UploadFileAsync (long? petId, string additionalMetadata, FileStream file) {
- // verify the required parameter 'PetId' is set
- if (PetId == null) throw new ApiException(400, "Missing required parameter 'PetId' when calling UploadFile");
+ // verify the required parameter 'petId' is set
+ if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UploadFile");
var path = "/pet/{petId}/uploadImage";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(PetId));
+ path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
var queryParams = new Dictionary();
@@ -807,8 +807,8 @@ namespace IO.Swagger.Api {
- if (AdditionalMetadata != null) formParams.Add("additionalMetadata", ApiClient.ParameterToString(AdditionalMetadata)); // form parameter
- if (File != null) fileParams.Add("file", ApiClient.ParameterToString(File));
+ if (additionalMetadata != null) formParams.Add("additionalMetadata", ApiClient.ParameterToString(additionalMetadata)); // form parameter
+ if (file != null) fileParams.Add("file", ApiClient.ParameterToString(file));
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs
index 294910b453..67276bbce8 100644
--- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/StoreApi.cs
@@ -26,44 +26,44 @@ namespace IO.Swagger.Api {
///
/// Place an order for a pet
///
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Order
- Order PlaceOrder (Order Body);
+ Order PlaceOrder (Order body);
///
/// Place an order for a pet
///
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Order
- Task PlaceOrderAsync (Order Body);
+ Task PlaceOrderAsync (Order body);
///
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
- /// ID of pet that needs to be fetched
+ /// ID of pet that needs to be fetched
/// Order
- Order GetOrderById (string OrderId);
+ Order GetOrderById (string orderId);
///
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
- /// ID of pet that needs to be fetched
+ /// ID of pet that needs to be fetched
/// Order
- Task GetOrderByIdAsync (string OrderId);
+ Task GetOrderByIdAsync (string orderId);
///
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
- /// ID of the order that needs to be deleted
+ /// ID of the order that needs to be deleted
///
- void DeleteOrder (string OrderId);
+ void DeleteOrder (string orderId);
///
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
- /// ID of the order that needs to be deleted
+ /// ID of the order that needs to be deleted
///
- Task DeleteOrderAsync (string OrderId);
+ Task DeleteOrderAsync (string orderId);
}
@@ -190,9 +190,9 @@ namespace IO.Swagger.Api {
///
/// Place an order for a pet
///
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Order
- public Order PlaceOrder (Order Body) {
+ public Order PlaceOrder (Order body) {
@@ -209,7 +209,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -227,9 +227,9 @@ namespace IO.Swagger.Api {
///
/// Place an order for a pet
///
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Order
- public async Task PlaceOrderAsync (Order Body) {
+ public async Task PlaceOrderAsync (Order body) {
@@ -246,7 +246,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -263,18 +263,18 @@ namespace IO.Swagger.Api {
///
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
- /// ID of pet that needs to be fetched
+ /// ID of pet that needs to be fetched
/// Order
- public Order GetOrderById (string OrderId) {
+ public Order GetOrderById (string orderId) {
- // verify the required parameter 'OrderId' is set
- if (OrderId == null) throw new ApiException(400, "Missing required parameter 'OrderId' when calling GetOrderById");
+ // verify the required parameter 'orderId' is set
+ if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling GetOrderById");
var path = "/store/order/{orderId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(OrderId));
+ path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(orderId));
var queryParams = new Dictionary();
@@ -303,18 +303,18 @@ namespace IO.Swagger.Api {
///
/// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
///
- /// ID of pet that needs to be fetched
+ /// ID of pet that needs to be fetched
/// Order
- public async Task GetOrderByIdAsync (string OrderId) {
+ public async Task GetOrderByIdAsync (string orderId) {
- // verify the required parameter 'OrderId' is set
- if (OrderId == null) throw new ApiException(400, "Missing required parameter 'OrderId' when calling GetOrderById");
+ // verify the required parameter 'orderId' is set
+ if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling GetOrderById");
var path = "/store/order/{orderId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(OrderId));
+ path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(orderId));
var queryParams = new Dictionary();
@@ -342,18 +342,18 @@ namespace IO.Swagger.Api {
///
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
- /// ID of the order that needs to be deleted
+ /// ID of the order that needs to be deleted
///
- public void DeleteOrder (string OrderId) {
+ public void DeleteOrder (string orderId) {
- // verify the required parameter 'OrderId' is set
- if (OrderId == null) throw new ApiException(400, "Missing required parameter 'OrderId' when calling DeleteOrder");
+ // verify the required parameter 'orderId' is set
+ if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling DeleteOrder");
var path = "/store/order/{orderId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(OrderId));
+ path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(orderId));
var queryParams = new Dictionary();
@@ -383,18 +383,18 @@ namespace IO.Swagger.Api {
///
/// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
///
- /// ID of the order that needs to be deleted
+ /// ID of the order that needs to be deleted
///
- public async Task DeleteOrderAsync (string OrderId) {
+ public async Task DeleteOrderAsync (string orderId) {
- // verify the required parameter 'OrderId' is set
- if (OrderId == null) throw new ApiException(400, "Missing required parameter 'OrderId' when calling DeleteOrder");
+ // verify the required parameter 'orderId' is set
+ if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling DeleteOrder");
var path = "/store/order/{orderId}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(OrderId));
+ path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(orderId));
var queryParams = new Dictionary();
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs
index 65aaf490d9..2d87996dd9 100644
--- a/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Api/UserApi.cs
@@ -14,60 +14,60 @@ namespace IO.Swagger.Api {
///
/// Create user This can only be done by the logged in user.
///
- /// Created user object
+ /// Created user object
///
- void CreateUser (User Body);
+ void CreateUser (User body);
///
/// Create user This can only be done by the logged in user.
///
- /// Created user object
+ /// Created user object
///
- Task CreateUserAsync (User Body);
+ Task CreateUserAsync (User body);
///
/// Creates list of users with given input array
///
- /// List of user object
+ /// List of user object
///
- void CreateUsersWithArrayInput (List Body);
+ void CreateUsersWithArrayInput (List body);
///
/// Creates list of users with given input array
///
- /// List of user object
+ /// List of user object
///
- Task CreateUsersWithArrayInputAsync (List Body);
+ Task CreateUsersWithArrayInputAsync (List body);
///
/// Creates list of users with given input array
///
- /// List of user object
+ /// List of user object
///
- void CreateUsersWithListInput (List Body);
+ void CreateUsersWithListInput (List body);
///
/// Creates list of users with given input array
///
- /// List of user object
+ /// List of user object
///
- Task CreateUsersWithListInputAsync (List Body);
+ Task CreateUsersWithListInputAsync (List body);
///
/// Logs user into the system
///
- /// The user name for login
- /// The password for login in clear text
+ /// The user name for login
+ /// The password for login in clear text
/// string
- string LoginUser (string Username, string Password);
+ string LoginUser (string username, string password);
///
/// Logs user into the system
///
- /// The user name for login
- /// The password for login in clear text
+ /// The user name for login
+ /// The password for login in clear text
/// string
- Task LoginUserAsync (string Username, string Password);
+ Task LoginUserAsync (string username, string password);
///
/// Logs out current logged in user session
@@ -84,46 +84,46 @@ namespace IO.Swagger.Api {
///
/// Get user by user name
///
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// User
- User GetUserByName (string Username);
+ User GetUserByName (string username);
///
/// Get user by user name
///
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// User
- Task GetUserByNameAsync (string Username);
+ Task GetUserByNameAsync (string username);
///
/// Updated user This can only be done by the logged in user.
///
- /// name that need to be deleted
- /// Updated user object
+ /// name that need to be deleted
+ /// Updated user object
///
- void UpdateUser (string Username, User Body);
+ void UpdateUser (string username, User body);
///
/// Updated user This can only be done by the logged in user.
///
- /// name that need to be deleted
- /// Updated user object
+ /// name that need to be deleted
+ /// Updated user object
///
- Task UpdateUserAsync (string Username, User Body);
+ Task UpdateUserAsync (string username, User body);
///
/// Delete user This can only be done by the logged in user.
///
- /// The name that needs to be deleted
+ /// The name that needs to be deleted
///
- void DeleteUser (string Username);
+ void DeleteUser (string username);
///
/// Delete user This can only be done by the logged in user.
///
- /// The name that needs to be deleted
+ /// The name that needs to be deleted
///
- Task DeleteUserAsync (string Username);
+ Task DeleteUserAsync (string username);
}
@@ -181,9 +181,9 @@ namespace IO.Swagger.Api {
///
/// Create user This can only be done by the logged in user.
///
- /// Created user object
+ /// Created user object
///
- public void CreateUser (User Body) {
+ public void CreateUser (User body) {
@@ -200,7 +200,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -219,9 +219,9 @@ namespace IO.Swagger.Api {
///
/// Create user This can only be done by the logged in user.
///
- /// Created user object
+ /// Created user object
///
- public async Task CreateUserAsync (User Body) {
+ public async Task CreateUserAsync (User body) {
@@ -238,7 +238,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -256,9 +256,9 @@ namespace IO.Swagger.Api {
///
/// Creates list of users with given input array
///
- /// List of user object
+ /// List of user object
///
- public void CreateUsersWithArrayInput (List Body) {
+ public void CreateUsersWithArrayInput (List body) {
@@ -275,7 +275,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -294,9 +294,9 @@ namespace IO.Swagger.Api {
///
/// Creates list of users with given input array
///
- /// List of user object
+ /// List of user object
///
- public async Task CreateUsersWithArrayInputAsync (List Body) {
+ public async Task CreateUsersWithArrayInputAsync (List body) {
@@ -313,7 +313,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -331,9 +331,9 @@ namespace IO.Swagger.Api {
///
/// Creates list of users with given input array
///
- /// List of user object
+ /// List of user object
///
- public void CreateUsersWithListInput (List Body) {
+ public void CreateUsersWithListInput (List body) {
@@ -350,7 +350,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -369,9 +369,9 @@ namespace IO.Swagger.Api {
///
/// Creates list of users with given input array
///
- /// List of user object
+ /// List of user object
///
- public async Task CreateUsersWithListInputAsync (List Body) {
+ public async Task CreateUsersWithListInputAsync (List body) {
@@ -388,7 +388,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -406,10 +406,10 @@ namespace IO.Swagger.Api {
///
/// Logs user into the system
///
- /// The user name for login
- /// The password for login in clear text
+ /// The user name for login
+ /// The password for login in clear text
/// string
- public string LoginUser (string Username, string Password) {
+ public string LoginUser (string username, string password) {
@@ -423,8 +423,8 @@ namespace IO.Swagger.Api {
var fileParams = new Dictionary();
String postBody = null;
- if (Username != null) queryParams.Add("username", ApiClient.ParameterToString(Username)); // query parameter
- if (Password != null) queryParams.Add("password", ApiClient.ParameterToString(Password)); // query parameter
+ if (username != null) queryParams.Add("username", ApiClient.ParameterToString(username)); // query parameter
+ if (password != null) queryParams.Add("password", ApiClient.ParameterToString(password)); // query parameter
@@ -445,10 +445,10 @@ namespace IO.Swagger.Api {
///
/// Logs user into the system
///
- /// The user name for login
- /// The password for login in clear text
+ /// The user name for login
+ /// The password for login in clear text
/// string
- public async Task LoginUserAsync (string Username, string Password) {
+ public async Task LoginUserAsync (string username, string password) {
@@ -462,8 +462,8 @@ namespace IO.Swagger.Api {
var fileParams = new Dictionary();
String postBody = null;
- if (Username != null) queryParams.Add("username", ApiClient.ParameterToString(Username)); // query parameter
- if (Password != null) queryParams.Add("password", ApiClient.ParameterToString(Password)); // query parameter
+ if (username != null) queryParams.Add("username", ApiClient.ParameterToString(username)); // query parameter
+ if (password != null) queryParams.Add("password", ApiClient.ParameterToString(password)); // query parameter
@@ -554,18 +554,18 @@ namespace IO.Swagger.Api {
///
/// Get user by user name
///
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// User
- public User GetUserByName (string Username) {
+ public User GetUserByName (string username) {
- // verify the required parameter 'Username' is set
- if (Username == null) throw new ApiException(400, "Missing required parameter 'Username' when calling GetUserByName");
+ // verify the required parameter 'username' is set
+ if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling GetUserByName");
var path = "/user/{username}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(Username));
+ path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(username));
var queryParams = new Dictionary();
@@ -594,18 +594,18 @@ namespace IO.Swagger.Api {
///
/// Get user by user name
///
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// User
- public async Task GetUserByNameAsync (string Username) {
+ public async Task GetUserByNameAsync (string username) {
- // verify the required parameter 'Username' is set
- if (Username == null) throw new ApiException(400, "Missing required parameter 'Username' when calling GetUserByName");
+ // verify the required parameter 'username' is set
+ if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling GetUserByName");
var path = "/user/{username}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(Username));
+ path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(username));
var queryParams = new Dictionary();
@@ -633,19 +633,19 @@ namespace IO.Swagger.Api {
///
/// Updated user This can only be done by the logged in user.
///
- /// name that need to be deleted
- /// Updated user object
+ /// name that need to be deleted
+ /// Updated user object
///
- public void UpdateUser (string Username, User Body) {
+ public void UpdateUser (string username, User body) {
- // verify the required parameter 'Username' is set
- if (Username == null) throw new ApiException(400, "Missing required parameter 'Username' when calling UpdateUser");
+ // verify the required parameter 'username' is set
+ if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling UpdateUser");
var path = "/user/{username}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(Username));
+ path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(username));
var queryParams = new Dictionary();
@@ -657,7 +657,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -676,19 +676,19 @@ namespace IO.Swagger.Api {
///
/// Updated user This can only be done by the logged in user.
///
- /// name that need to be deleted
- /// Updated user object
+ /// name that need to be deleted
+ /// Updated user object
///
- public async Task UpdateUserAsync (string Username, User Body) {
+ public async Task UpdateUserAsync (string username, User body) {
- // verify the required parameter 'Username' is set
- if (Username == null) throw new ApiException(400, "Missing required parameter 'Username' when calling UpdateUser");
+ // verify the required parameter 'username' is set
+ if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling UpdateUser");
var path = "/user/{username}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(Username));
+ path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(username));
var queryParams = new Dictionary();
@@ -700,7 +700,7 @@ namespace IO.Swagger.Api {
- postBody = ApiClient.Serialize(Body); // http body (model) parameter
+ postBody = ApiClient.Serialize(body); // http body (model) parameter
// authentication setting, if any
@@ -718,18 +718,18 @@ namespace IO.Swagger.Api {
///
/// Delete user This can only be done by the logged in user.
///
- /// The name that needs to be deleted
+ /// The name that needs to be deleted
///
- public void DeleteUser (string Username) {
+ public void DeleteUser (string username) {
- // verify the required parameter 'Username' is set
- if (Username == null) throw new ApiException(400, "Missing required parameter 'Username' when calling DeleteUser");
+ // verify the required parameter 'username' is set
+ if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling DeleteUser");
var path = "/user/{username}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(Username));
+ path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(username));
var queryParams = new Dictionary();
@@ -759,18 +759,18 @@ namespace IO.Swagger.Api {
///
/// Delete user This can only be done by the logged in user.
///
- /// The name that needs to be deleted
+ /// The name that needs to be deleted
///
- public async Task DeleteUserAsync (string Username) {
+ public async Task DeleteUserAsync (string username) {
- // verify the required parameter 'Username' is set
- if (Username == null) throw new ApiException(400, "Missing required parameter 'Username' when calling DeleteUser");
+ // verify the required parameter 'username' is set
+ if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling DeleteUser");
var path = "/user/{username}";
path = path.Replace("{format}", "json");
- path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(Username));
+ path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(username));
var queryParams = new Dictionary();
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll b/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll
index e13ef14ee6..60d81e320b 100755
Binary files a/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll and b/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll differ
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb b/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb
index 970220989a..53958fc7ab 100644
Binary files a/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb and b/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb differ
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll b/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll
index e13ef14ee6..60d81e320b 100755
Binary files a/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll and b/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll differ
diff --git a/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb b/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb
index 970220989a..53958fc7ab 100644
Binary files a/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb and b/samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.dll.mdb differ