From 0e34bcf4e460ccb715c94b4a08c48e528ce27cbb Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Tue, 6 Feb 2018 09:54:26 -0500 Subject: [PATCH] [csharp] ctor params should always be camelCase (#7519) * [csharp] ctor params should always be camelCase After PR #6305, var names defaulted to PascalCase results in constructor arguments also being PacalCase. Model properties and constructor arguments have no reason to be the same case, and in fact may cause issues (`name = name` will result in a compilation error). This commit forces all constructor params in models to lowerCase. This is a necessary change, for instance, if client SDK consumers assign using named args: var a = new Model(first = "", second = "") The PacalCase default and update to constructor arg casing will break existing consumers of the client. See #7070 for more details and discussion. * [csharp] Regenerate samples * [csharp] Remove client models generated from a different spec. * [csharp] Escape reserved words on camelcase/lowercase lambdas * [csharp] Regenerate samples --- .../io/swagger/codegen/CodegenConfig.java | 2 + .../languages/AbstractCSharpCodegen.java | 37 +++++- .../languages/KotlinServerCodegen.java | 26 ++-- .../codegen/mustache/CamelCaseLambda.java | 63 +++++++++ .../codegen/mustache/LowercaseLambda.java | 19 ++- .../resources/csharp/modelGeneric.mustache | 20 +-- .../codegen/mustache/CamelCaseLambdaTest.java | 73 +++++++++++ .../codegen/mustache/LowercaseLambdaTest.java | 18 +++ ...yClassWithInvalidRequiredEnumUsageOnRef.cs | 10 +- .../Model/MyClassWithOptionalEnum.cs | 14 +- .../Model/MyClassWithOptionalInlineEnum.cs | 14 +- .../Model/MyClassWithRequiredInlineEnum.cs | 20 +-- .../csharp/SwaggerClient/docs/ModelReturn.md | 9 -- .../IO.Swagger.Test/Model/ClassModelTests.cs | 6 +- .../IO.Swagger.Test/Model/FormatTestTests.cs | 24 ++-- .../Model/Model200ResponseTests.cs | 6 +- .../IO.Swagger.Test/Model/ModelClientTests.cs | 6 +- .../IO.Swagger.Test/Model/ModelReturnTests.cs | 80 ----------- .../Model/AdditionalPropertiesClass.cs | 10 +- .../src/IO.Swagger/Model/Animal.cs | 20 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 14 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayTest.cs | 14 +- .../src/IO.Swagger/Model/Capitalization.cs | 26 ++-- .../SwaggerClient/src/IO.Swagger/Model/Cat.cs | 6 +- .../src/IO.Swagger/Model/Category.cs | 10 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +- .../SwaggerClient/src/IO.Swagger/Model/Dog.cs | 6 +- .../src/IO.Swagger/Model/EnumArrays.cs | 10 +- .../src/IO.Swagger/Model/EnumTest.cs | 18 +-- .../src/IO.Swagger/Model/FormatTest.cs | 78 +++++------ .../src/IO.Swagger/Model/MapTest.cs | 10 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 14 +- .../src/IO.Swagger/Model/Model200Response.cs | 10 +- .../src/IO.Swagger/Model/ModelClient.cs | 6 +- .../src/IO.Swagger/Model/ModelReturn.cs | 124 ------------------ .../src/IO.Swagger/Model/Name.cs | 16 +-- .../src/IO.Swagger/Model/NumberOnly.cs | 6 +- .../src/IO.Swagger/Model/Order.cs | 30 ++--- .../src/IO.Swagger/Model/OuterComposite.cs | 14 +- .../SwaggerClient/src/IO.Swagger/Model/Pet.cs | 38 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 6 +- .../src/IO.Swagger/Model/Return.cs | 6 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 6 +- .../SwaggerClient/src/IO.Swagger/Model/Tag.cs | 10 +- .../src/IO.Swagger/Model/User.cs | 34 ++--- .../Model/AdditionalPropertiesClass.cs | 10 +- .../src/IO.Swagger/Model/Animal.cs | 20 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 14 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayTest.cs | 14 +- .../src/IO.Swagger/Model/Capitalization.cs | 26 ++-- .../src/IO.Swagger/Model/Cat.cs | 6 +- .../src/IO.Swagger/Model/Category.cs | 10 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +- .../src/IO.Swagger/Model/Dog.cs | 6 +- .../src/IO.Swagger/Model/EnumArrays.cs | 10 +- .../src/IO.Swagger/Model/EnumTest.cs | 18 +-- .../src/IO.Swagger/Model/FormatTest.cs | 78 +++++------ .../src/IO.Swagger/Model/MapTest.cs | 10 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 14 +- .../src/IO.Swagger/Model/Model200Response.cs | 10 +- .../src/IO.Swagger/Model/ModelClient.cs | 6 +- .../src/IO.Swagger/Model/Name.cs | 16 +-- .../src/IO.Swagger/Model/NumberOnly.cs | 6 +- .../src/IO.Swagger/Model/Order.cs | 30 ++--- .../src/IO.Swagger/Model/OuterComposite.cs | 14 +- .../src/IO.Swagger/Model/Pet.cs | 38 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 6 +- .../src/IO.Swagger/Model/Return.cs | 6 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 6 +- .../src/IO.Swagger/Model/Tag.cs | 10 +- .../src/IO.Swagger/Model/User.cs | 34 ++--- .../Model/AdditionalPropertiesClass.cs | 10 +- .../src/IO.Swagger/Model/Animal.cs | 20 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 14 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayTest.cs | 14 +- .../src/IO.Swagger/Model/Capitalization.cs | 26 ++-- .../src/IO.Swagger/Model/Cat.cs | 6 +- .../src/IO.Swagger/Model/Category.cs | 10 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +- .../src/IO.Swagger/Model/Dog.cs | 6 +- .../src/IO.Swagger/Model/EnumArrays.cs | 10 +- .../src/IO.Swagger/Model/EnumTest.cs | 18 +-- .../src/IO.Swagger/Model/FormatTest.cs | 78 +++++------ .../src/IO.Swagger/Model/MapTest.cs | 10 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 14 +- .../src/IO.Swagger/Model/Model200Response.cs | 10 +- .../src/IO.Swagger/Model/ModelClient.cs | 6 +- .../src/IO.Swagger/Model/Name.cs | 16 +-- .../src/IO.Swagger/Model/NumberOnly.cs | 6 +- .../src/IO.Swagger/Model/Order.cs | 30 ++--- .../src/IO.Swagger/Model/OuterComposite.cs | 14 +- .../src/IO.Swagger/Model/Pet.cs | 38 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 6 +- .../src/IO.Swagger/Model/Return.cs | 6 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 6 +- .../src/IO.Swagger/Model/Tag.cs | 10 +- .../src/IO.Swagger/Model/User.cs | 34 ++--- .../Model/AdditionalPropertiesClass.cs | 10 +- .../src/IO.Swagger/Model/Animal.cs | 20 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 14 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayTest.cs | 14 +- .../src/IO.Swagger/Model/Capitalization.cs | 26 ++-- .../src/IO.Swagger/Model/Cat.cs | 6 +- .../src/IO.Swagger/Model/Category.cs | 10 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +- .../src/IO.Swagger/Model/Dog.cs | 6 +- .../src/IO.Swagger/Model/EnumArrays.cs | 10 +- .../src/IO.Swagger/Model/EnumTest.cs | 18 +-- .../src/IO.Swagger/Model/FormatTest.cs | 78 +++++------ .../src/IO.Swagger/Model/MapTest.cs | 10 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 14 +- .../src/IO.Swagger/Model/Model200Response.cs | 10 +- .../src/IO.Swagger/Model/ModelClient.cs | 6 +- .../src/IO.Swagger/Model/Name.cs | 16 +-- .../src/IO.Swagger/Model/NumberOnly.cs | 6 +- .../src/IO.Swagger/Model/Order.cs | 30 ++--- .../src/IO.Swagger/Model/OuterComposite.cs | 14 +- .../src/IO.Swagger/Model/Pet.cs | 38 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 6 +- .../src/IO.Swagger/Model/Return.cs | 6 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 6 +- .../src/IO.Swagger/Model/Tag.cs | 10 +- .../src/IO.Swagger/Model/User.cs | 34 ++--- .../Model/AdditionalPropertiesClass.cs | 10 +- .../src/IO.Swagger/Model/Animal.cs | 20 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 14 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 6 +- .../src/IO.Swagger/Model/ArrayTest.cs | 14 +- .../src/IO.Swagger/Model/Capitalization.cs | 26 ++-- .../src/IO.Swagger/Model/Cat.cs | 6 +- .../src/IO.Swagger/Model/Category.cs | 10 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +- .../src/IO.Swagger/Model/Dog.cs | 6 +- .../src/IO.Swagger/Model/EnumArrays.cs | 10 +- .../src/IO.Swagger/Model/EnumTest.cs | 18 +-- .../src/IO.Swagger/Model/FormatTest.cs | 78 +++++------ .../src/IO.Swagger/Model/MapTest.cs | 10 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 14 +- .../src/IO.Swagger/Model/Model200Response.cs | 10 +- .../src/IO.Swagger/Model/ModelClient.cs | 6 +- .../src/IO.Swagger/Model/Name.cs | 16 +-- .../src/IO.Swagger/Model/NumberOnly.cs | 6 +- .../src/IO.Swagger/Model/Order.cs | 30 ++--- .../src/IO.Swagger/Model/OuterComposite.cs | 14 +- .../src/IO.Swagger/Model/Pet.cs | 38 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 6 +- .../src/IO.Swagger/Model/Return.cs | 6 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 6 +- .../src/IO.Swagger/Model/Tag.cs | 10 +- .../src/IO.Swagger/Model/User.cs | 34 ++--- 159 files changed, 1368 insertions(+), 1383 deletions(-) create mode 100644 modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/CamelCaseLambda.java create mode 100644 modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/CamelCaseLambdaTest.java delete mode 100644 samples/client/petstore/csharp/SwaggerClient/docs/ModelReturn.md delete mode 100644 samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ModelReturnTests.cs delete mode 100644 samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenConfig.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenConfig.java index bd44d7a39790..1e9925a2e9c5 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenConfig.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenConfig.java @@ -216,4 +216,6 @@ public interface CodegenConfig { String toGetter(String name); + String sanitizeName(String name); + } diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java index 2d34ae6b1dc2..6e08cd79885b 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java @@ -1,6 +1,9 @@ package io.swagger.codegen.languages; +import com.google.common.collect.ImmutableMap; +import com.samskivert.mustache.Mustache; import io.swagger.codegen.*; +import io.swagger.codegen.mustache.*; import io.swagger.codegen.utils.ModelUtils; import io.swagger.models.properties.*; import org.apache.commons.lang3.StringUtils; @@ -21,7 +24,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co protected boolean returnICollection = false; protected boolean netCoreProjectFileFlag = false; - protected String modelPropertyNaming = "PascalCase"; + protected String modelPropertyNaming = CodegenConstants.MODEL_PROPERTY_NAMING_TYPE.PascalCase.name(); protected String packageVersion = "1.0.0"; protected String packageName = "IO.Swagger"; @@ -305,6 +308,32 @@ public void processOpts() { // This either updates additionalProperties with the above fixes, or sets the default if the option was not specified. additionalProperties.put(CodegenConstants.INTERFACE_PREFIX, interfacePrefix); + + addMustacheLambdas(additionalProperties); + } + + private void addMustacheLambdas(Map objs) { + + Map lambdas = new ImmutableMap.Builder() + .put("lowercase", new LowercaseLambda().generator(this)) + .put("uppercase", new UppercaseLambda()) + .put("titlecase", new TitlecaseLambda()) + .put("camelcase", new CamelCaseLambda().generator(this)) + .put("camelcase_param", new CamelCaseLambda().generator(this).escapeAsParamName(true)) + .put("indented", new IndentedLambda()) + .put("indented_8", new IndentedLambda(8, " ")) + .put("indented_12", new IndentedLambda(12, " ")) + .put("indented_16", new IndentedLambda(16, " ")) + .build(); + + if (objs.containsKey("lambda")) { + LOGGER.warn("An property named 'lambda' already exists. Mustache lambdas renamed from 'lambda' to '_lambda'. " + + "You'll likely need to use a custom template, " + + "see https://github.com/swagger-api/swagger-codegen#modifying-the-client-library-format. "); + objs.put("_lambda", lambdas); + } else { + objs.put("lambda", lambdas); + } } @Override @@ -351,7 +380,7 @@ public Map postProcessAllModels(Map objs) { * When working with enums, we can't always assume a RefModel is a nullable type (where default(YourType) == null), * so this post processing runs through all models to find RefModel'd enums. Then, it runs through all vars and modifies * those vars referencing RefModel'd enums to work the same as inlined enums rather than as objects. - * @param models + * @param models processed models to be further processed for enum references */ @SuppressWarnings({ "unchecked" }) private void postProcessEnumRefs(final Map models) { @@ -750,8 +779,8 @@ public String getSwaggerType(Property p) { /** * Provides C# strongly typed declaration for simple arrays of some type and arrays of arrays of some type. - * @param arr - * @return + * @param arr The input array property + * @return The type declaration when the type is an array of arrays. */ private String getArrayTypeDeclaration(ArrayProperty arr) { // TODO: collection type here should be fully qualified namespace to avoid model conflicts diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/KotlinServerCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/KotlinServerCodegen.java index 2e04de7e45e7..291c8c880581 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/KotlinServerCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/KotlinServerCodegen.java @@ -2,22 +2,19 @@ import com.google.common.collect.ImmutableMap; import com.samskivert.mustache.Mustache; -import com.samskivert.mustache.Template; -import io.swagger.codegen.*; - -import java.io.File; -import java.io.IOException; -import java.io.Writer; -import java.util.*; - -import io.swagger.codegen.mustache.IndentedLambda; -import io.swagger.codegen.mustache.LowercaseLambda; -import io.swagger.codegen.mustache.TitlecaseLambda; -import io.swagger.codegen.mustache.UppercaseLambda; -import org.apache.commons.lang3.StringUtils; +import io.swagger.codegen.CliOption; +import io.swagger.codegen.CodegenConstants; +import io.swagger.codegen.CodegenType; +import io.swagger.codegen.SupportingFile; +import io.swagger.codegen.mustache.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.File; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + public class KotlinServerCodegen extends AbstractKotlinCodegen { public static final String DEFAULT_LIBRARY = Constants.KTOR; @@ -191,9 +188,10 @@ public void processOpts() { private void addMustacheLambdas(Map objs) { Map lambdas = new ImmutableMap.Builder() - .put("lowercase", new LowercaseLambda()) + .put("lowercase", new LowercaseLambda().generator(this)) .put("uppercase", new UppercaseLambda()) .put("titlecase", new TitlecaseLambda()) + .put("camelcase", new CamelCaseLambda().generator(this)) .put("indented", new IndentedLambda()) .put("indented_8", new IndentedLambda(8, " ")) .put("indented_12", new IndentedLambda(12, " ")) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/CamelCaseLambda.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/CamelCaseLambda.java new file mode 100644 index 000000000000..df677ea6fcee --- /dev/null +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/CamelCaseLambda.java @@ -0,0 +1,63 @@ +package io.swagger.codegen.mustache; + +import com.google.common.base.CaseFormat; +import com.samskivert.mustache.Mustache; +import com.samskivert.mustache.Template; +import io.swagger.codegen.CodegenConfig; +import io.swagger.codegen.DefaultCodegen; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.text.WordUtils; + +import java.io.IOException; +import java.io.Writer; + +/** + * Converts text in a fragment to camelCase. + * + * Register: + *
+ * additionalProperties.put("camelcase", new CamelCaseLambda());
+ * 
+ * + * Use: + *
+ * {{#camelcase}}{{name}}{{/camelcase}}
+ * 
+ */ +public class CamelCaseLambda implements Mustache.Lambda { + private CodegenConfig generator = null; + private Boolean escapeParam = false; + + public CamelCaseLambda() { + + } + + public CamelCaseLambda generator(final CodegenConfig generator) { + this.generator = generator; + return this; + } + + public CamelCaseLambda escapeAsParamName(final Boolean escape) { + this.escapeParam = escape; + return this; + } + + @Override + public void execute(Template.Fragment fragment, Writer writer) throws IOException { + String text = DefaultCodegen.camelize(fragment.execute(), true); + if (generator != null) { + text = generator.sanitizeName(text); + if (generator.reservedWords().contains(text)) { + // Escaping must be done *after* camelize, because generators may escape using characters removed by camelize function. + text = generator.escapeReservedWord(text); + } + + if (escapeParam) { + // NOTE: many generators call escapeReservedWord in toParamName, but we can't assume that's always the case. + // Here, we'll have to accept that we may be duplicating some work. + text = generator.toParamName(text); + } + } + writer.write(text); + } +} diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/LowercaseLambda.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/LowercaseLambda.java index 1bc239e850a1..300ee0517bf8 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/LowercaseLambda.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/LowercaseLambda.java @@ -2,6 +2,7 @@ import com.samskivert.mustache.Mustache; import com.samskivert.mustache.Template; +import io.swagger.codegen.CodegenConfig; import java.io.IOException; import java.io.Writer; @@ -20,10 +21,24 @@ * */ public class LowercaseLambda implements Mustache.Lambda { + private CodegenConfig generator = null; + + public LowercaseLambda() { + + } + + public LowercaseLambda generator(final CodegenConfig generator) { + this.generator = generator; + return this; + } + @Override public void execute(Template.Fragment fragment, Writer writer) throws IOException { - String text = fragment.execute(); - writer.write(text.toLowerCase()); + String text = fragment.execute().toLowerCase(); + if (generator != null && generator.reservedWords().contains(text)) { + text = generator.escapeReservedWord(text); + } + writer.write(text); } } diff --git a/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache b/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache index d0e75fd178c8..99e0b0901435 100644 --- a/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache +++ b/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache @@ -49,26 +49,26 @@ /// {{#vars}} {{^isReadOnly}} - /// {{#description}}{{description}}{{/description}}{{^description}}{{name}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{defaultValue}}){{/defaultValue}}. + /// {{#description}}{{description}}{{/description}}{{^description}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{defaultValue}}){{/defaultValue}}. {{/isReadOnly}} {{/vars}} {{#hasOnlyReadOnly}} [JsonConstructorAttribute] {{/hasOnlyReadOnly}} - public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{name}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{name}}{{#hasMore}}, {{/hasMore}}{{/parentVars}}){{/parent}} + public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{#hasMore}}, {{/hasMore}}{{/parentVars}}){{/parent}} { {{#vars}} {{^isInherited}} {{^isReadOnly}} {{#required}} - // to ensure "{{name}}" is required (not null) - if ({{name}} == null) + // to ensure "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" is required (not null) + if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null) { - throw new InvalidDataException("{{name}} is a required property for {{classname}} and cannot be null"); + throw new InvalidDataException("{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} is a required property for {{classname}} and cannot be null"); } else { - this.{{name}} = {{name}}; + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; } {{/required}} {{/isReadOnly}} @@ -78,18 +78,18 @@ {{^isInherited}} {{^isReadOnly}} {{^required}} - {{#defaultValue}}// use default value if no "{{name}}" provided - if ({{name}} == null) + {{#defaultValue}}// use default value if no "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" provided + if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null) { this.{{name}} = {{{defaultValue}}}; } else { - this.{{name}} = {{name}}; + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; } {{/defaultValue}} {{^defaultValue}} -this.{{name}} = {{name}}; +this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; {{/defaultValue}} {{/required}} {{/isReadOnly}} diff --git a/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/CamelCaseLambdaTest.java b/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/CamelCaseLambdaTest.java new file mode 100644 index 000000000000..98300bf0168b --- /dev/null +++ b/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/CamelCaseLambdaTest.java @@ -0,0 +1,73 @@ +package io.swagger.codegen.mustache; + +import io.swagger.codegen.CodegenConfig; +import io.swagger.codegen.languages.CSharpClientCodegen; +import io.swagger.codegen.languages.ScalaClientCodegen; +import org.testng.annotations.Factory; +import org.testng.annotations.Test; + +import static org.testng.Assert.*; + +public class CamelCaseLambdaTest extends MustacheTestBase { + private final String input; + private final String expected; + private Boolean escapeAsParamName = false; + + private CodegenConfig generator = null; + + public CamelCaseLambdaTest(String input, String expected) { + this.input = input; + this.expected = expected; + } + + public CamelCaseLambdaTest generator(CodegenConfig generator) { + this.generator = generator; + return this; + } + + public CamelCaseLambdaTest escapeAsParamName(Boolean setting) { + this.escapeAsParamName = setting; + return this; + } + + @Test(description = "camelCase expected inputs") + public void testExecute() throws Exception { + // Arrange + String template = "{{#camelcase}}{{value}}{{/camelcase}}"; + Object inputCtx = context( + "camelcase", new CamelCaseLambda().generator(this.generator).escapeAsParamName(this.escapeAsParamName), + "value", this.input + ); + + // Act + String actual = compile(template, inputCtx); + + + // Assert + assertEquals(actual, this.expected); + } + + @Factory + public static Object[] factoryMethod() { + return new Object[] { + new CamelCaseLambdaTest("lowercase input", "lowercase input"), + + // NOTE: DefaultCodegen.camelize(string, true) only results in first character of first word being lowercased. + // Keeping this behavior as it will match whatever is expected by existing codegen implementations. + new CamelCaseLambdaTest("UPPERCASE INPUT", "uPPERCASE INPUT"), + new CamelCaseLambdaTest("inputText", "inputText"), + new CamelCaseLambdaTest("input_text", "inputText"), + + // TODO: This result for INPUT_TEXT may be unexpected, but is the result of DefaultCodegen.camelize. + // CamelCaseLambda can be extended to accept a method reference after move to Java 8. + new CamelCaseLambdaTest("INPUT_TEXT", "iNPUTTEXT"), + new CamelCaseLambdaTest("input-text", "inputText"), + new CamelCaseLambdaTest("input-text input-text input-text input-text input-text", "inputText inputText inputText inputText inputText"), + // C# codegen at time of writing this test escapes using a character that would be removed by camelize function. + new CamelCaseLambdaTest("class", "_class").generator(new CSharpClientCodegen()), + new CamelCaseLambdaTest("123List", "_123List").generator(new CSharpClientCodegen()).escapeAsParamName(true), + // Scala codegen is only one at time of writing this test that uses a Mustache.Escaper + new CamelCaseLambdaTest("class", "`class`").generator(new ScalaClientCodegen()) + }; + } +} \ No newline at end of file diff --git a/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/LowercaseLambdaTest.java b/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/LowercaseLambdaTest.java index 8405f732cf45..a62f28f16b4c 100644 --- a/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/LowercaseLambdaTest.java +++ b/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/LowercaseLambdaTest.java @@ -1,5 +1,6 @@ package io.swagger.codegen.mustache; +import io.swagger.codegen.languages.CSharpClientCodegen; import org.testng.annotations.Test; import static org.testng.Assert.*; @@ -28,4 +29,21 @@ public void testExecute() throws Exception { assertEquals(lowercaseResult, "lowercase input"); assertEquals(uppercaseResult, "uppercase input"); } + + @Test(description = "lowercase escapes reserved words") + public void testEscapingReservedWords() { + // Arrange + String template = "{{#lowercase}}{{value}}{{/lowercase}}"; + String expected = "_class"; + Object ctx = context( + "lowercase", new LowercaseLambda().generator(new CSharpClientCodegen()), + "value", "CLASS" + ); + + // Act + String actual = compile(template, ctx); + + // Assert + assertEquals(actual, expected); + } } \ No newline at end of file diff --git a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithInvalidRequiredEnumUsageOnRef.cs b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithInvalidRequiredEnumUsageOnRef.cs index cbff1a670c7f..75a72f936087 100644 --- a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithInvalidRequiredEnumUsageOnRef.cs +++ b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithInvalidRequiredEnumUsageOnRef.cs @@ -38,12 +38,12 @@ public partial class MyClassWithInvalidRequiredEnumUsageOnRef : IEquatable /// Initializes a new instance of the class. /// - /// First. - /// Days. - public MyClassWithInvalidRequiredEnumUsageOnRef(bool? First = default(bool?), WeekDays? Days = default(WeekDays?)) + /// first. + /// days. + public MyClassWithInvalidRequiredEnumUsageOnRef(bool? first = default(bool?), WeekDays? days = default(WeekDays?)) { - this.First = First; - this.Days = Days; + this.First = first; + this.Days = days; } /// diff --git a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalEnum.cs b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalEnum.cs index a514a1b329ff..9f04ce13db3b 100644 --- a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalEnum.cs +++ b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalEnum.cs @@ -38,14 +38,14 @@ public partial class MyClassWithOptionalEnum : IEquatable /// Initializes a new instance of the class. /// - /// Quarantine. - /// Grayware. - /// Days. - public MyClassWithOptionalEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), WeekDays? Days = default(WeekDays?)) + /// quarantine. + /// grayware. + /// days. + public MyClassWithOptionalEnum(bool? quarantine = default(bool?), bool? grayware = default(bool?), WeekDays? days = default(WeekDays?)) { - this.Quarantine = Quarantine; - this.Grayware = Grayware; - this.Days = Days; + this.Quarantine = quarantine; + this.Grayware = grayware; + this.Days = days; } /// diff --git a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalInlineEnum.cs b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalInlineEnum.cs index 66ce618e9810..e82cadf84673 100644 --- a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalInlineEnum.cs +++ b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalInlineEnum.cs @@ -88,14 +88,14 @@ public enum DaysEnum /// /// Initializes a new instance of the class. /// - /// Quarantine. - /// Grayware. - /// Days. - public MyClassWithOptionalInlineEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), DaysEnum? Days = default(DaysEnum?)) + /// quarantine. + /// grayware. + /// days. + public MyClassWithOptionalInlineEnum(bool? quarantine = default(bool?), bool? grayware = default(bool?), DaysEnum? days = default(DaysEnum?)) { - this.Quarantine = Quarantine; - this.Grayware = Grayware; - this.Days = Days; + this.Quarantine = quarantine; + this.Grayware = grayware; + this.Days = days; } /// diff --git a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithRequiredInlineEnum.cs b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithRequiredInlineEnum.cs index dcb3707584a7..73b652b1fcca 100644 --- a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithRequiredInlineEnum.cs +++ b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithRequiredInlineEnum.cs @@ -93,22 +93,22 @@ protected MyClassWithRequiredInlineEnum() { } /// /// Initializes a new instance of the class. /// - /// Quarantine. - /// Grayware. - /// Days (required). - public MyClassWithRequiredInlineEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), DaysEnum Days = default(DaysEnum)) + /// quarantine. + /// grayware. + /// days (required). + public MyClassWithRequiredInlineEnum(bool? quarantine = default(bool?), bool? grayware = default(bool?), DaysEnum days = default(DaysEnum)) { - // to ensure "Days" is required (not null) - if (Days == null) + // to ensure "days" is required (not null) + if (days == null) { - throw new InvalidDataException("Days is a required property for MyClassWithRequiredInlineEnum and cannot be null"); + throw new InvalidDataException("days is a required property for MyClassWithRequiredInlineEnum and cannot be null"); } else { - this.Days = Days; + this.Days = days; } - this.Quarantine = Quarantine; - this.Grayware = Grayware; + this.Quarantine = quarantine; + this.Grayware = grayware; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/docs/ModelReturn.md b/samples/client/petstore/csharp/SwaggerClient/docs/ModelReturn.md deleted file mode 100644 index 9895ccde2b0c..000000000000 --- a/samples/client/petstore/csharp/SwaggerClient/docs/ModelReturn.md +++ /dev/null @@ -1,9 +0,0 @@ -# IO.Swagger.Model.ModelReturn -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_Return** | **int?** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ClassModelTests.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ClassModelTests.cs index 2589ea4ecea7..fd22d2a3d867 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ClassModelTests.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ClassModelTests.cs @@ -67,12 +67,12 @@ public void ClassModelInstanceTest() /// - /// Test the property '_Class' + /// Test the property 'Class' /// [Test] - public void _ClassTest() + public void ClassTest() { - // TODO unit test for the property '_Class' + // TODO unit test for the property 'Class' } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/FormatTestTests.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/FormatTestTests.cs index 3ae16b2fc6b8..cd3f8ff3c66b 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/FormatTestTests.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/FormatTestTests.cs @@ -99,36 +99,36 @@ public void NumberTest() // TODO unit test for the property 'Number' } /// - /// Test the property '_Float' + /// Test the property 'Float' /// [Test] - public void _FloatTest() + public void FloatTest() { - // TODO unit test for the property '_Float' + // TODO unit test for the property 'Float' } /// - /// Test the property '_Double' + /// Test the property 'Double' /// [Test] - public void _DoubleTest() + public void DoubleTest() { - // TODO unit test for the property '_Double' + // TODO unit test for the property 'Double' } /// - /// Test the property '_String' + /// Test the property 'String' /// [Test] - public void _StringTest() + public void StringTest() { - // TODO unit test for the property '_String' + // TODO unit test for the property 'String' } /// - /// Test the property '_Byte' + /// Test the property 'Byte' /// [Test] - public void _ByteTest() + public void ByteTest() { - // TODO unit test for the property '_Byte' + // TODO unit test for the property 'Byte' } /// /// Test the property 'Binary' diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/Model200ResponseTests.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/Model200ResponseTests.cs index cdb0c1960c28..0c2923ce04b9 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/Model200ResponseTests.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/Model200ResponseTests.cs @@ -75,12 +75,12 @@ public void NameTest() // TODO unit test for the property 'Name' } /// - /// Test the property '_Class' + /// Test the property 'Class' /// [Test] - public void _ClassTest() + public void ClassTest() { - // TODO unit test for the property '_Class' + // TODO unit test for the property 'Class' } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ModelClientTests.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ModelClientTests.cs index f552ab929590..8aacfe5e13ac 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ModelClientTests.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ModelClientTests.cs @@ -67,12 +67,12 @@ public void ModelClientInstanceTest() /// - /// Test the property '_Client' + /// Test the property '__Client' /// [Test] - public void _ClientTest() + public void __ClientTest() { - // TODO unit test for the property '_Client' + // TODO unit test for the property '__Client' } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ModelReturnTests.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ModelReturnTests.cs deleted file mode 100644 index 7c9ca513a7db..000000000000 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/Model/ModelReturnTests.cs +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Swagger Petstore - * - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - - -using NUnit.Framework; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using IO.Swagger.Api; -using IO.Swagger.Model; -using IO.Swagger.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace IO.Swagger.Test -{ - /// - /// Class for testing ModelReturn - /// - /// - /// This file is automatically generated by Swagger Codegen. - /// Please update the test case below to test the model. - /// - [TestFixture] - public class ModelReturnTests - { - // TODO uncomment below to declare an instance variable for ModelReturn - //private ModelReturn instance; - - /// - /// Setup before each test - /// - [SetUp] - public void Init() - { - // TODO uncomment below to create an instance of ModelReturn - //instance = new ModelReturn(); - } - - /// - /// Clean up after each test - /// - [TearDown] - public void Cleanup() - { - - } - - /// - /// Test an instance of ModelReturn - /// - [Test] - public void ModelReturnInstanceTest() - { - // TODO uncomment below to test "IsInstanceOfType" ModelReturn - //Assert.IsInstanceOfType (instance, "variable 'instance' is a ModelReturn"); - } - - - /// - /// Test the property '_Return' - /// - [Test] - public void _ReturnTest() - { - // TODO unit test for the property '_Return' - } - - } - -} diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index c11ae7e72f4a..c9a5dbc1f1d0 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AdditionalPropertiesClass.cs @@ -33,12 +33,12 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs index 9b44060fb85e..3c2f0134e362 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs @@ -42,27 +42,27 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs index e4e7048711c8..32a2d8a71536 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs @@ -33,14 +33,14 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index 24f51e9010ee..5d868983b5db 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs @@ -33,10 +33,10 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index 44513c217623..6f265e2889c0 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs @@ -33,10 +33,10 @@ public partial class ArrayOfNumberOnly : IEquatable, IValida /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs index d6d3917a89d1..5c214054576b 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs @@ -33,14 +33,14 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs index 78af1207503a..f2512000b6d3 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs @@ -33,20 +33,20 @@ public partial class Capitalization : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs index b012af5de709..bf0aedbb4eb5 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs @@ -38,10 +38,10 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs index af12c8c3b390..0e82265da50b 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs @@ -33,12 +33,12 @@ public partial class Category : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs index cd82cd31dece..aea6930a2c64 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs @@ -33,10 +33,10 @@ public partial class ClassModel : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Class. - public ClassModel(string Class = default(string)) + /// _class. + public ClassModel(string _class = default(string)) { - this.Class = Class; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Dog.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Dog.cs index f92b01a5bfb3..4705f66264da 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Dog.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Dog.cs @@ -38,10 +38,10 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs index 7b5b206889fa..2d5b4c88421f 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs @@ -84,12 +84,12 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs index df4ebc66c81d..5f4b84d5b7e0 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs @@ -118,16 +118,16 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs index 4a0c3f973834..129677abb0f0 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs @@ -38,66 +38,66 @@ protected FormatTest() { } /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs index e68482ececc9..6eb0ef0ee345 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs @@ -59,12 +59,12 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index ff71e5b3d5bd..9c84755b622b 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -33,14 +33,14 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs index ece573ce162e..7fccbdc1fced 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs @@ -33,12 +33,12 @@ public partial class Model200Response : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs index 117463e0bf4d..aa02d34addc5 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs @@ -33,10 +33,10 @@ public partial class ModelClient : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// __Client. - public ModelClient(string __Client = default(string)) + /// _client. + public ModelClient(string _client = default(string)) { - this.__Client = __Client; + this.__Client = _client; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs deleted file mode 100644 index 412c676a8ad5..000000000000 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Swagger Petstore - * - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter; - -namespace IO.Swagger.Model -{ - /// - /// Model for testing reserved words - /// - [DataContract] - public partial class ModelReturn : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// _Return. - public ModelReturn(int? _Return = default(int?)) - { - this._Return = _Return; - } - - /// - /// Gets or Sets _Return - /// - [DataMember(Name="return", EmitDefaultValue=false)] - public int? _Return { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ModelReturn {\n"); - sb.Append(" _Return: ").Append(_Return).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as ModelReturn); - } - - /// - /// Returns true if ModelReturn instances are equal - /// - /// Instance of ModelReturn to be compared - /// Boolean - public bool Equals(ModelReturn input) - { - if (input == null) - return false; - - return - ( - this._Return == input._Return || - (this._Return != null && - this._Return.Equals(input._Return)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this._Return != null) - hashCode = hashCode * 59 + this._Return.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Name.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Name.cs index 31c8e25bcd1b..1658622043b9 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Name.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Name.cs @@ -38,20 +38,20 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs index 27f1522e63d3..33158907b92f 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs @@ -33,10 +33,10 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs index c8bddf3c33ee..2461d92147b1 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs @@ -66,27 +66,27 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs index 5b14554b6438..fa1ff0cb876b 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs @@ -33,14 +33,14 @@ public partial class OuterComposite : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs index c218ecd48405..8cbe466db8f3 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs @@ -71,36 +71,36 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs index af7030e59a33..7dd0d1425862 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs @@ -33,10 +33,10 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObj /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Return.cs index 39b03628206f..0c2b3129633c 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Return.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Return.cs @@ -33,10 +33,10 @@ public partial class Return : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// _Return. - public Return(int? _Return = default(int?)) + /// _return. + public Return(int? _return = default(int?)) { - this._Return = _Return; + this._Return = _return; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/SpecialModelName.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/SpecialModelName.cs index 177e401ec969..c8355cf7871c 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/SpecialModelName.cs @@ -33,10 +33,10 @@ public partial class SpecialModelName : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs index 4ad09373c432..535477cd98e7 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs @@ -33,12 +33,12 @@ public partial class Tag : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs index 773882600b30..a74e2de72601 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs @@ -33,24 +33,24 @@ public partial class User : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index 271cfba5d5ef..53794bea4b80 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/AdditionalPropertiesClass.cs @@ -33,12 +33,12 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Animal.cs index f1ebc0d02167..67c4ded80b01 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Animal.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Animal.cs @@ -42,27 +42,27 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ApiResponse.cs index e8d0570cb7e4..8da0d9583e59 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ApiResponse.cs @@ -33,14 +33,14 @@ public partial class ApiResponse : IEquatable /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index 4badc3bd44c2..14ae6878a0cb 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs @@ -33,10 +33,10 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index 41b7d2af8219..52dd89f405e1 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfNumberOnly.cs @@ -33,10 +33,10 @@ public partial class ArrayOfNumberOnly : IEquatable /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayTest.cs index d58f2cc51b31..a490f3b87046 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayTest.cs @@ -33,14 +33,14 @@ public partial class ArrayTest : IEquatable /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Capitalization.cs index d48b618b27aa..a5ad99c1643c 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Capitalization.cs @@ -33,20 +33,20 @@ public partial class Capitalization : IEquatable /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Cat.cs index 567c97f7a718..9aae8f64ccb1 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Cat.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Cat.cs @@ -38,10 +38,10 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Category.cs index 6b98cae97bd2..ef73c50ba411 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Category.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Category.cs @@ -33,12 +33,12 @@ public partial class Category : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ClassModel.cs index 54842287cf6b..e10c88981fbb 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ClassModel.cs @@ -33,10 +33,10 @@ public partial class ClassModel : IEquatable /// /// Initializes a new instance of the class. /// - /// Class. - public ClassModel(string Class = default(string)) + /// _class. + public ClassModel(string _class = default(string)) { - this.Class = Class; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Dog.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Dog.cs index f33616ffd824..8d0522996e6a 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Dog.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Dog.cs @@ -38,10 +38,10 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumArrays.cs index eec89794289b..3260df07b7aa 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumArrays.cs @@ -84,12 +84,12 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumTest.cs index 9e4f6a56b62f..b2a4cf935232 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumTest.cs @@ -118,16 +118,16 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/FormatTest.cs index 02f96e6c5be8..914900d5e543 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/FormatTest.cs @@ -38,66 +38,66 @@ protected FormatTest() { } /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MapTest.cs index 3b6655b284b7..33c0584e9e28 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MapTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MapTest.cs @@ -59,12 +59,12 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3d4b0ed66d2b..7ee14dea5e59 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -33,14 +33,14 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Model200Response.cs index d81f20e57570..1b2562d29842 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Model200Response.cs @@ -33,12 +33,12 @@ public partial class Model200Response : IEquatable /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ModelClient.cs index db5426bfb05d..95efda1013ad 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ModelClient.cs @@ -33,10 +33,10 @@ public partial class ModelClient : IEquatable /// /// Initializes a new instance of the class. /// - /// __Client. - public ModelClient(string __Client = default(string)) + /// _client. + public ModelClient(string _client = default(string)) { - this.__Client = __Client; + this.__Client = _client; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Name.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Name.cs index 4e9e284aea62..2dc637499cd6 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Name.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Name.cs @@ -38,20 +38,20 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/NumberOnly.cs index d238193aa8f3..8b70b4352b0a 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/NumberOnly.cs @@ -33,10 +33,10 @@ public partial class NumberOnly : IEquatable /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Order.cs index a800f2e11f44..d2db31954075 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Order.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Order.cs @@ -66,27 +66,27 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/OuterComposite.cs index f29a8e55202a..deb058b19799 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/OuterComposite.cs @@ -33,14 +33,14 @@ public partial class OuterComposite : IEquatable /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Pet.cs index 12c1937f9bf9..87275c296ccd 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Pet.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Pet.cs @@ -71,36 +71,36 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ReadOnlyFirst.cs index cf8176592f60..9fe864f5b2d9 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ReadOnlyFirst.cs @@ -33,10 +33,10 @@ public partial class ReadOnlyFirst : IEquatable /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Return.cs index 0743d0ffa754..84538651ade2 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Return.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Return.cs @@ -33,10 +33,10 @@ public partial class Return : IEquatable /// /// Initializes a new instance of the class. /// - /// _Return. - public Return(int? _Return = default(int?)) + /// _return. + public Return(int? _return = default(int?)) { - this._Return = _Return; + this._Return = _return; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/SpecialModelName.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/SpecialModelName.cs index b103d5e61440..17db9a9d1e89 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/SpecialModelName.cs @@ -33,10 +33,10 @@ public partial class SpecialModelName : IEquatable /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Tag.cs index d21e67778dd2..642732f59252 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Tag.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Tag.cs @@ -33,12 +33,12 @@ public partial class Tag : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/User.cs index 584ec8c310d2..0e75b43ba4fe 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/User.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/User.cs @@ -33,24 +33,24 @@ public partial class User : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index c11ae7e72f4a..c9a5dbc1f1d0 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/AdditionalPropertiesClass.cs @@ -33,12 +33,12 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Animal.cs index 9b44060fb85e..3c2f0134e362 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Animal.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Animal.cs @@ -42,27 +42,27 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ApiResponse.cs index e4e7048711c8..32a2d8a71536 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ApiResponse.cs @@ -33,14 +33,14 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index 24f51e9010ee..5d868983b5db 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs @@ -33,10 +33,10 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index 44513c217623..6f265e2889c0 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfNumberOnly.cs @@ -33,10 +33,10 @@ public partial class ArrayOfNumberOnly : IEquatable, IValida /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayTest.cs index d6d3917a89d1..5c214054576b 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayTest.cs @@ -33,14 +33,14 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Capitalization.cs index 78af1207503a..f2512000b6d3 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Capitalization.cs @@ -33,20 +33,20 @@ public partial class Capitalization : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Cat.cs index b012af5de709..bf0aedbb4eb5 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Cat.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Cat.cs @@ -38,10 +38,10 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Category.cs index af12c8c3b390..0e82265da50b 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Category.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Category.cs @@ -33,12 +33,12 @@ public partial class Category : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ClassModel.cs index cd82cd31dece..aea6930a2c64 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ClassModel.cs @@ -33,10 +33,10 @@ public partial class ClassModel : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Class. - public ClassModel(string Class = default(string)) + /// _class. + public ClassModel(string _class = default(string)) { - this.Class = Class; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Dog.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Dog.cs index f92b01a5bfb3..4705f66264da 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Dog.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Dog.cs @@ -38,10 +38,10 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumArrays.cs index 7b5b206889fa..2d5b4c88421f 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumArrays.cs @@ -84,12 +84,12 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumTest.cs index df4ebc66c81d..5f4b84d5b7e0 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumTest.cs @@ -118,16 +118,16 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/FormatTest.cs index 4a0c3f973834..129677abb0f0 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/FormatTest.cs @@ -38,66 +38,66 @@ protected FormatTest() { } /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MapTest.cs index e68482ececc9..6eb0ef0ee345 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MapTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MapTest.cs @@ -59,12 +59,12 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index ff71e5b3d5bd..9c84755b622b 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -33,14 +33,14 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Model200Response.cs index ece573ce162e..7fccbdc1fced 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Model200Response.cs @@ -33,12 +33,12 @@ public partial class Model200Response : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ModelClient.cs index 117463e0bf4d..aa02d34addc5 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ModelClient.cs @@ -33,10 +33,10 @@ public partial class ModelClient : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// __Client. - public ModelClient(string __Client = default(string)) + /// _client. + public ModelClient(string _client = default(string)) { - this.__Client = __Client; + this.__Client = _client; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Name.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Name.cs index 31c8e25bcd1b..1658622043b9 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Name.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Name.cs @@ -38,20 +38,20 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/NumberOnly.cs index 27f1522e63d3..33158907b92f 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/NumberOnly.cs @@ -33,10 +33,10 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Order.cs index c8bddf3c33ee..2461d92147b1 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Order.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Order.cs @@ -66,27 +66,27 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/OuterComposite.cs index 5b14554b6438..fa1ff0cb876b 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/OuterComposite.cs @@ -33,14 +33,14 @@ public partial class OuterComposite : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Pet.cs index c218ecd48405..8cbe466db8f3 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Pet.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Pet.cs @@ -71,36 +71,36 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ReadOnlyFirst.cs index af7030e59a33..7dd0d1425862 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ReadOnlyFirst.cs @@ -33,10 +33,10 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObj /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Return.cs index 39b03628206f..0c2b3129633c 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Return.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Return.cs @@ -33,10 +33,10 @@ public partial class Return : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// _Return. - public Return(int? _Return = default(int?)) + /// _return. + public Return(int? _return = default(int?)) { - this._Return = _Return; + this._Return = _return; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/SpecialModelName.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/SpecialModelName.cs index 177e401ec969..c8355cf7871c 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/SpecialModelName.cs @@ -33,10 +33,10 @@ public partial class SpecialModelName : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Tag.cs index 4ad09373c432..535477cd98e7 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Tag.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Tag.cs @@ -33,12 +33,12 @@ public partial class Tag : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/User.cs index 773882600b30..a74e2de72601 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/User.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/User.cs @@ -33,24 +33,24 @@ public partial class User : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index 51b5d86bf47c..1a3bb3d1f697 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs @@ -31,12 +31,12 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs index b0b642e09ff2..7e3b397d2d53 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs @@ -40,27 +40,27 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs index 5e03eeda044f..86a24a4b7115 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs @@ -31,14 +31,14 @@ public partial class ApiResponse : IEquatable /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index f2202240e70d..d5f390edca7e 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs @@ -31,10 +31,10 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index ab2deba2484f..2a19536618d4 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs @@ -31,10 +31,10 @@ public partial class ArrayOfNumberOnly : IEquatable /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs index 992dc11e15bf..b3705a7d7702 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs @@ -31,14 +31,14 @@ public partial class ArrayTest : IEquatable /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs index 69794a2be1a2..7529b2a80c5e 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs @@ -31,20 +31,20 @@ public partial class Capitalization : IEquatable /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs index 555746a83fec..015746e47c44 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs @@ -36,10 +36,10 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs index 1d553e471095..bd820603f5c1 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs @@ -31,12 +31,12 @@ public partial class Category : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs index 67e9e204d0af..9c01449fd881 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs @@ -31,10 +31,10 @@ public partial class ClassModel : IEquatable /// /// Initializes a new instance of the class. /// - /// Class. - public ClassModel(string Class = default(string)) + /// _class. + public ClassModel(string _class = default(string)) { - this.Class = Class; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs index 672511560d0e..07cb7d55fa1d 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs @@ -36,10 +36,10 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs index 5391fb4a8e22..0642bfe93bab 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs @@ -82,12 +82,12 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs index d734025d4833..8a26f250c55a 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs @@ -116,16 +116,16 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs index 8507759542f0..d7af9916a9f5 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs @@ -36,66 +36,66 @@ protected FormatTest() { } /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs index 7563ad74afab..598f2309c81e 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs @@ -57,12 +57,12 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 15ac5cd269ca..b3ee6f35e6cd 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -31,14 +31,14 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs index a0ea98056e65..3bf31b5e40f9 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs @@ -31,12 +31,12 @@ public partial class Model200Response : IEquatable /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs index cd1aee27b4cd..909c4ead55aa 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs @@ -31,10 +31,10 @@ public partial class ModelClient : IEquatable /// /// Initializes a new instance of the class. /// - /// __Client. - public ModelClient(string __Client = default(string)) + /// _client. + public ModelClient(string _client = default(string)) { - this.__Client = __Client; + this.__Client = _client; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Name.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Name.cs index ac996069e088..414ed11b7a3d 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Name.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Name.cs @@ -36,20 +36,20 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs index 3c3e83b2262d..05958dc3fd4b 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs @@ -31,10 +31,10 @@ public partial class NumberOnly : IEquatable /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs index 3d2c54c6556e..7f0ae101aa45 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs @@ -64,27 +64,27 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs index 46fbc5e21b20..0bf2d9e57cc3 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs @@ -31,14 +31,14 @@ public partial class OuterComposite : IEquatable /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs index 3f1ae8343933..4d41431009a1 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs @@ -69,36 +69,36 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs index 2565a394a733..e2e49cce78f1 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs @@ -31,10 +31,10 @@ public partial class ReadOnlyFirst : IEquatable /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Return.cs index b11bad752f98..e2a3377dd3be 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Return.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Return.cs @@ -31,10 +31,10 @@ public partial class Return : IEquatable /// /// Initializes a new instance of the class. /// - /// _Return. - public Return(int? _Return = default(int?)) + /// _return. + public Return(int? _return = default(int?)) { - this._Return = _Return; + this._Return = _return; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/SpecialModelName.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/SpecialModelName.cs index 865845c329a0..d18791b0f914 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/SpecialModelName.cs @@ -31,10 +31,10 @@ public partial class SpecialModelName : IEquatable /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs index 45aa6818bd10..0c25af135a73 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs @@ -31,12 +31,12 @@ public partial class Tag : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs index 30c411ed9527..6c5fb9fb311c 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs @@ -31,24 +31,24 @@ public partial class User : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index 39b40dad9383..fa8b7f8f9c80 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs @@ -36,12 +36,12 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs index e99145ac0921..940b1e32ddfa 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs @@ -45,27 +45,27 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs index 9e6f328dec7b..20d50827800e 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs @@ -36,14 +36,14 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index b576f5e980c5..71bc817c7b80 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs @@ -36,10 +36,10 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index f6dfc3d3c3e8..00f642c86d8d 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs @@ -36,10 +36,10 @@ public partial class ArrayOfNumberOnly : IEquatable, IValida /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs index 4cc97026da29..f52b956673d8 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs @@ -36,14 +36,14 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs index 09b2b86102d2..8687f876d138 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs @@ -36,20 +36,20 @@ public partial class Capitalization : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs index ec8d4fb60307..8fb9222c84c3 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs @@ -41,10 +41,10 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs index 87b93ebb81c7..1a679cbcdf1f 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs @@ -36,12 +36,12 @@ public partial class Category : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs index f52476f7b29b..ae01a328083a 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs @@ -36,10 +36,10 @@ public partial class ClassModel : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Class. - public ClassModel(string Class = default(string)) + /// _class. + public ClassModel(string _class = default(string)) { - this.Class = Class; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Dog.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Dog.cs index 12f06f9ae539..32a6b8d23dfc 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Dog.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Dog.cs @@ -41,10 +41,10 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs index 3f408068bade..9ffc60891238 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs @@ -87,12 +87,12 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs index 846dd43ab51f..7a0220cd2d71 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs @@ -121,16 +121,16 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs index c92aed7f3491..67bde1f1566d 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs @@ -41,66 +41,66 @@ protected FormatTest() { } /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs index 7ab7098dc8f8..9e1baf5f9a32 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs @@ -62,12 +62,12 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index d69f7f54a7a8..f180fac5195d 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -36,14 +36,14 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs index 5503837c0643..6a3b8b189ab8 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs @@ -36,12 +36,12 @@ public partial class Model200Response : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs index 1fe5ee1c1be2..af05d8a38098 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs @@ -36,10 +36,10 @@ public partial class ModelClient : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// __Client. - public ModelClient(string __Client = default(string)) + /// _client. + public ModelClient(string _client = default(string)) { - this.__Client = __Client; + this.__Client = _client; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Name.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Name.cs index ce4fa8672d91..8958293076e3 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Name.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Name.cs @@ -41,20 +41,20 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs index ce574d1945d8..c47292cbafbb 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs @@ -36,10 +36,10 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs index f7da8aa68629..6e3ea2682430 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs @@ -69,27 +69,27 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs index bba9945febbf..dc3cf0b69200 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs @@ -36,14 +36,14 @@ public partial class OuterComposite : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs index f44ebee2ef89..021f39629dc4 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs @@ -74,36 +74,36 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs index f65a429bb07a..b2a6effca1b7 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs @@ -36,10 +36,10 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObj /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Return.cs index c8b264faba1d..918a724a179f 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Return.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Return.cs @@ -36,10 +36,10 @@ public partial class Return : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// _Return. - public Return(int? _Return = default(int?)) + /// _return. + public Return(int? _return = default(int?)) { - this._Return = _Return; + this._Return = _return; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/SpecialModelName.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/SpecialModelName.cs index b7756fa21bd9..04268626879e 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/SpecialModelName.cs @@ -36,10 +36,10 @@ public partial class SpecialModelName : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs index f47899d1130d..ce788676207a 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs @@ -36,12 +36,12 @@ public partial class Tag : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs index f815c1c0803f..d69c7e4a3134 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs @@ -36,24 +36,24 @@ public partial class User : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } ///