From 76fc9f01f761ce39495d614b7f59b88e70b93a12 Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Sun, 28 Jan 2018 15:17:15 -0500 Subject: [PATCH 1/5] [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. --- .../languages/AbstractCSharpCodegen.java | 36 +++++++++++-- .../languages/KotlinServerCodegen.java | 24 ++++----- .../codegen/mustache/CamelCaseLambda.java | 29 +++++++++++ .../resources/csharp/modelGeneric.mustache | 16 +++--- .../codegen/mustache/CamelCaseLambdaTest.java | 52 +++++++++++++++++++ ...yClassWithInvalidRequiredEnumUsageOnRef.cs | 6 +-- .../Model/MyClassWithOptionalEnum.cs | 8 +-- .../Model/MyClassWithOptionalInlineEnum.cs | 8 +-- .../Model/MyClassWithRequiredInlineEnum.cs | 14 ++--- 9 files changed, 150 insertions(+), 43 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 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 2d34ae6b1dc..19313e05666 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,31 @@ 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()) + .put("uppercase", new UppercaseLambda()) + .put("titlecase", new TitlecaseLambda()) + .put("camelcase", new CamelCaseLambda()) + .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 +379,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 +778,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 2e04de7e45e..092ec067278 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; @@ -194,6 +191,7 @@ private void addMustacheLambdas(Map objs) { .put("lowercase", new LowercaseLambda()) .put("uppercase", new UppercaseLambda()) .put("titlecase", new TitlecaseLambda()) + .put("camelcase", new CamelCaseLambda()) .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 00000000000..9ea2bf50350 --- /dev/null +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/CamelCaseLambda.java @@ -0,0 +1,29 @@ +package io.swagger.codegen.mustache; + +import com.samskivert.mustache.Mustache; +import com.samskivert.mustache.Template; +import io.swagger.codegen.DefaultCodegen; + +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 { + @Override + public void execute(Template.Fragment fragment, Writer writer) throws IOException { + String text = fragment.execute(); + writer.write(DefaultCodegen.camelize(text, true)); + } +} diff --git a/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache b/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache index d0e75fd178c..104a7515de6 100644 --- a/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache +++ b/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache @@ -55,20 +55,20 @@ {{#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}}{{name}}{{/lambda.camelcase}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}{{#hasMore}}, {{/hasMore}}{{/parentVars}}){{/parent}} { {{#vars}} {{^isInherited}} {{^isReadOnly}} {{#required}} - // to ensure "{{name}}" is required (not null) - if ({{name}} == null) + // to ensure "{{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}" is required (not null) + if ({{#lambda.camelcase}}{{name}}{{/lambda.camelcase}} == null) { - throw new InvalidDataException("{{name}} is a required property for {{classname}} and cannot be null"); + throw new InvalidDataException("{{#lambda.camelcase}}{{name}}{{/lambda.camelcase}} is a required property for {{classname}} and cannot be null"); } else { - this.{{name}} = {{name}}; + this.{{name}} = {{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}; } {{/required}} {{/isReadOnly}} @@ -79,17 +79,17 @@ {{^isReadOnly}} {{^required}} {{#defaultValue}}// use default value if no "{{name}}" provided - if ({{name}} == null) + if ({{#lambda.camelcase}}{{name}}{{/lambda.camelcase}} == null) { this.{{name}} = {{{defaultValue}}}; } else { - this.{{name}} = {{name}}; + this.{{name}} = {{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}; } {{/defaultValue}} {{^defaultValue}} -this.{{name}} = {{name}}; +this.{{name}} = {{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}; {{/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 00000000000..a87215f4b95 --- /dev/null +++ b/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/CamelCaseLambdaTest.java @@ -0,0 +1,52 @@ +package io.swagger.codegen.mustache; + +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; + + public CamelCaseLambdaTest(String input, String expected) { + this.input = input; + this.expected = expected; + } + + @Test(description = "camelCase expected inputs") + public void testExecute() throws Exception { + // Arrange + String template = "{{#camelcase}}{{value}}{{/camelcase}}"; + Object inputCtx = context( + "camelcase", new CamelCaseLambda(), + "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 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") + }; + } +} \ 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 cbff1a670c7..ea4638e1af1 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 @@ -40,10 +40,10 @@ public partial class MyClassWithInvalidRequiredEnumUsageOnRef : IEquatable /// First. /// Days. - public MyClassWithInvalidRequiredEnumUsageOnRef(bool? First = default(bool?), WeekDays? Days = default(WeekDays?)) + 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 a514a1b329f..3da1f50625b 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 @@ -41,11 +41,11 @@ public partial class MyClassWithOptionalEnum : IEquatableQuarantine. /// Grayware. /// Days. - public MyClassWithOptionalEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), WeekDays? Days = default(WeekDays?)) + 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 66ce618e981..f97457251b3 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 @@ -91,11 +91,11 @@ public enum DaysEnum /// Quarantine. /// Grayware. /// Days. - public MyClassWithOptionalInlineEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), DaysEnum? Days = default(DaysEnum?)) + 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 dcb3707584a..3e5db977c51 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 @@ -96,19 +96,19 @@ protected MyClassWithRequiredInlineEnum() { } /// Quarantine. /// Grayware. /// Days (required). - public MyClassWithRequiredInlineEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), DaysEnum Days = default(DaysEnum)) + 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; } /// From 62f62b4c98f3e084d37a9aea76668f6883aa13b0 Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Sun, 28 Jan 2018 15:23:02 -0500 Subject: [PATCH 2/5] [csharp] Regenerate samples --- .../Model/AdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Animal.cs | 14 ++--- .../src/IO.Swagger/Model/ApiResponse.cs | 8 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayTest.cs | 8 +-- .../src/IO.Swagger/Model/Capitalization.cs | 14 ++--- .../SwaggerClient/src/IO.Swagger/Model/Cat.cs | 4 +- .../src/IO.Swagger/Model/Category.cs | 6 +-- .../src/IO.Swagger/Model/ClassModel.cs | 4 +- .../SwaggerClient/src/IO.Swagger/Model/Dog.cs | 4 +- .../src/IO.Swagger/Model/EnumArrays.cs | 6 +-- .../src/IO.Swagger/Model/EnumTest.cs | 10 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 52 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 6 +-- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +-- .../src/IO.Swagger/Model/Model200Response.cs | 6 +-- .../src/IO.Swagger/Model/ModelClient.cs | 4 +- .../src/IO.Swagger/Model/Name.cs | 12 ++--- .../src/IO.Swagger/Model/NumberOnly.cs | 4 +- .../src/IO.Swagger/Model/Order.cs | 16 +++--- .../src/IO.Swagger/Model/OuterComposite.cs | 8 +-- .../SwaggerClient/src/IO.Swagger/Model/Pet.cs | 26 +++++----- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 4 +- .../src/IO.Swagger/Model/Return.cs | 4 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 4 +- .../SwaggerClient/src/IO.Swagger/Model/Tag.cs | 6 +-- .../src/IO.Swagger/Model/User.cs | 18 +++---- .../Model/AdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Animal.cs | 14 ++--- .../src/IO.Swagger/Model/ApiResponse.cs | 8 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayTest.cs | 8 +-- .../src/IO.Swagger/Model/Capitalization.cs | 14 ++--- .../src/IO.Swagger/Model/Cat.cs | 4 +- .../src/IO.Swagger/Model/Category.cs | 6 +-- .../src/IO.Swagger/Model/ClassModel.cs | 4 +- .../src/IO.Swagger/Model/Dog.cs | 4 +- .../src/IO.Swagger/Model/EnumArrays.cs | 6 +-- .../src/IO.Swagger/Model/EnumTest.cs | 10 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 52 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 6 +-- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +-- .../src/IO.Swagger/Model/Model200Response.cs | 6 +-- .../src/IO.Swagger/Model/ModelClient.cs | 4 +- .../src/IO.Swagger/Model/Name.cs | 12 ++--- .../src/IO.Swagger/Model/NumberOnly.cs | 4 +- .../src/IO.Swagger/Model/Order.cs | 16 +++--- .../src/IO.Swagger/Model/OuterComposite.cs | 8 +-- .../src/IO.Swagger/Model/Pet.cs | 26 +++++----- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 4 +- .../src/IO.Swagger/Model/Return.cs | 4 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 4 +- .../src/IO.Swagger/Model/Tag.cs | 6 +-- .../src/IO.Swagger/Model/User.cs | 18 +++---- .../Model/AdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Animal.cs | 14 ++--- .../src/IO.Swagger/Model/ApiResponse.cs | 8 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayTest.cs | 8 +-- .../src/IO.Swagger/Model/Capitalization.cs | 14 ++--- .../src/IO.Swagger/Model/Cat.cs | 4 +- .../src/IO.Swagger/Model/Category.cs | 6 +-- .../src/IO.Swagger/Model/ClassModel.cs | 4 +- .../src/IO.Swagger/Model/Dog.cs | 4 +- .../src/IO.Swagger/Model/EnumArrays.cs | 6 +-- .../src/IO.Swagger/Model/EnumTest.cs | 10 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 52 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 6 +-- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +-- .../src/IO.Swagger/Model/Model200Response.cs | 6 +-- .../src/IO.Swagger/Model/ModelClient.cs | 4 +- .../src/IO.Swagger/Model/Name.cs | 12 ++--- .../src/IO.Swagger/Model/NumberOnly.cs | 4 +- .../src/IO.Swagger/Model/Order.cs | 16 +++--- .../src/IO.Swagger/Model/OuterComposite.cs | 8 +-- .../src/IO.Swagger/Model/Pet.cs | 26 +++++----- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 4 +- .../src/IO.Swagger/Model/Return.cs | 4 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 4 +- .../src/IO.Swagger/Model/Tag.cs | 6 +-- .../src/IO.Swagger/Model/User.cs | 18 +++---- .../Model/AdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Animal.cs | 14 ++--- .../src/IO.Swagger/Model/ApiResponse.cs | 8 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayTest.cs | 8 +-- .../src/IO.Swagger/Model/Capitalization.cs | 14 ++--- .../src/IO.Swagger/Model/Cat.cs | 4 +- .../src/IO.Swagger/Model/Category.cs | 6 +-- .../src/IO.Swagger/Model/ClassModel.cs | 4 +- .../src/IO.Swagger/Model/Dog.cs | 4 +- .../src/IO.Swagger/Model/EnumArrays.cs | 6 +-- .../src/IO.Swagger/Model/EnumTest.cs | 10 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 52 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 6 +-- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +-- .../src/IO.Swagger/Model/Model200Response.cs | 6 +-- .../src/IO.Swagger/Model/ModelClient.cs | 4 +- .../src/IO.Swagger/Model/Name.cs | 12 ++--- .../src/IO.Swagger/Model/NumberOnly.cs | 4 +- .../src/IO.Swagger/Model/Order.cs | 16 +++--- .../src/IO.Swagger/Model/OuterComposite.cs | 8 +-- .../src/IO.Swagger/Model/Pet.cs | 26 +++++----- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 4 +- .../src/IO.Swagger/Model/Return.cs | 4 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 4 +- .../src/IO.Swagger/Model/Tag.cs | 6 +-- .../src/IO.Swagger/Model/User.cs | 18 +++---- .../Model/AdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Animal.cs | 14 ++--- .../src/IO.Swagger/Model/ApiResponse.cs | 8 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 4 +- .../src/IO.Swagger/Model/ArrayTest.cs | 8 +-- .../src/IO.Swagger/Model/Capitalization.cs | 14 ++--- .../src/IO.Swagger/Model/Cat.cs | 4 +- .../src/IO.Swagger/Model/Category.cs | 6 +-- .../src/IO.Swagger/Model/ClassModel.cs | 4 +- .../src/IO.Swagger/Model/Dog.cs | 4 +- .../src/IO.Swagger/Model/EnumArrays.cs | 6 +-- .../src/IO.Swagger/Model/EnumTest.cs | 10 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 52 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 6 +-- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +-- .../src/IO.Swagger/Model/Model200Response.cs | 6 +-- .../src/IO.Swagger/Model/ModelClient.cs | 4 +- .../src/IO.Swagger/Model/Name.cs | 12 ++--- .../src/IO.Swagger/Model/NumberOnly.cs | 4 +- .../src/IO.Swagger/Model/Order.cs | 16 +++--- .../src/IO.Swagger/Model/OuterComposite.cs | 8 +-- .../src/IO.Swagger/Model/Pet.cs | 26 +++++----- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 4 +- .../src/IO.Swagger/Model/Return.cs | 4 +- .../src/IO.Swagger/Model/SpecialModelName.cs | 4 +- .../src/IO.Swagger/Model/Tag.cs | 6 +-- .../src/IO.Swagger/Model/User.cs | 18 +++---- 145 files changed, 685 insertions(+), 685 deletions(-) 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 c11ae7e72f4..76d841ed9db 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 @@ -35,10 +35,10 @@ public partial class AdditionalPropertiesClass : IEquatable /// MapProperty. /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + 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 9b44060fb85..5fe37fe9ddd 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 @@ -44,25 +44,25 @@ protected Animal() { } /// /// ClassName (required). /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "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) + 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 e4e7048711c..74f0eb559c8 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 @@ -36,11 +36,11 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Code. /// Type. /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + 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 24f51e9010e..a5dd8feb331 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 @@ -34,9 +34,9 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + 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 44513c21762..01b83954bda 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 @@ -34,9 +34,9 @@ public partial class ArrayOfNumberOnly : IEquatable, IValida /// Initializes a new instance of the class. /// /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + 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 d6d3917a89d..b64f45854ed 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 @@ -36,11 +36,11 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// ArrayOfString. /// ArrayArrayOfInteger. /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + 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 78af1207503..e10ea6f12cb 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 @@ -39,14 +39,14 @@ public partial class Capitalization : IEquatable, IValidatableO /// 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)) + 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 b012af5de70..58f93812c51 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 @@ -39,9 +39,9 @@ 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) + 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 af12c8c3b39..2037827e827 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 @@ -35,10 +35,10 @@ public partial class Category : IEquatable, IValidatableObject /// /// Id. /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + 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 cd82cd31dec..d177155bcb1 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 @@ -34,9 +34,9 @@ public partial class ClassModel : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// Class. - public ClassModel(string Class = default(string)) + 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 f92b01a5bfb..388e3db233b 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 @@ -39,9 +39,9 @@ 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) + 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 7b5b206889f..d9a33a3ede4 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 @@ -86,10 +86,10 @@ public enum ArrayEnumEnum /// /// JustSymbol. /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + 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 df4ebc66c81..d31ae0224c7 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 @@ -122,12 +122,12 @@ public enum EnumNumberEnum /// EnumInteger. /// EnumNumber. /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(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 4a0c3f97383..14672cd8a92 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 @@ -51,53 +51,53 @@ protected FormatTest() { } /// 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)) + 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/List.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs index eb3f6dacfe2..89c7d160e2c 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs @@ -34,9 +34,9 @@ public partial class List : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// _123List. - public List(string _123List = default(string)) + public List(string 123List = default(string)) { - this._123List = _123List; + this._123List = 123List; } /// 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 e68482ececc..197e734f01d 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 @@ -61,10 +61,10 @@ public enum InnerEnum /// /// MapMapOfString. /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + 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 ff71e5b3d5b..3f386bc5328 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 @@ -36,11 +36,11 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableUuid. /// DateTime. /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + 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 ece573ce162..ebff47f2829 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 @@ -35,10 +35,10 @@ public partial class Model200Response : IEquatable, IValidata /// /// Name. /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + 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 117463e0bf4..5b875fe200a 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 @@ -34,9 +34,9 @@ public partial class ModelClient : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// __Client. - public ModelClient(string __Client = default(string)) + public ModelClient(string client = default(string)) { - this.__Client = __Client; + this.__Client = client; } /// 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 31c8e25bcd1..e33abeac0e8 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 @@ -40,18 +40,18 @@ protected Name() { } /// /// _Name (required). /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + 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 27f1522e63d..de9669875ba 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 @@ -34,9 +34,9 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + 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 c8bddf3c33e..fd2cb696092 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 @@ -72,21 +72,21 @@ public enum StatusEnum /// 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) + 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; + 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) + 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 5b14554b643..b9a8d30f155 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 @@ -36,11 +36,11 @@ public partial class OuterComposite : IEquatable, IValidatableO /// MyNumber. /// MyString. /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + 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 c218ecd4840..04ec440be8b 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 @@ -77,30 +77,30 @@ protected Pet() { } /// 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?)) + 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 af7030e59a3..be26110613c 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 @@ -34,9 +34,9 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObj /// Initializes a new instance of the class. /// /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + 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 39b03628206..9772a842ab0 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 @@ -34,9 +34,9 @@ public partial class Return : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// _Return. - public Return(int? _Return = default(int?)) + 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 177e401ec96..1bf9414303a 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 @@ -34,9 +34,9 @@ public partial class SpecialModelName : IEquatable, IValidata /// Initializes a new instance of the class. /// /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + 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 4ad09373c43..e230a4f1948 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 @@ -35,10 +35,10 @@ public partial class Tag : IEquatable, IValidatableObject /// /// Id. /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + 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 773882600b3..bf03ee98454 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 @@ -41,16 +41,16 @@ public partial class User : IEquatable, IValidatableObject /// 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?)) + 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 271cfba5d5e..563ed1dc71d 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 @@ -35,10 +35,10 @@ public partial class AdditionalPropertiesClass : IEquatable /// MapProperty. /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + 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 f1ebc0d0216..d76f428dc7c 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 @@ -44,25 +44,25 @@ protected Animal() { } /// /// ClassName (required). /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "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) + 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 e8d0570cb7e..1dc55832ea5 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 @@ -36,11 +36,11 @@ public partial class ApiResponse : IEquatable /// Code. /// Type. /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + 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 4badc3bd44c..1fd26b59ec7 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 @@ -34,9 +34,9 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + 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 41b7d2af821..bdeddbfc0e6 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 @@ -34,9 +34,9 @@ public partial class ArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + 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 d58f2cc51b3..2140bc02182 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 @@ -36,11 +36,11 @@ public partial class ArrayTest : IEquatable /// ArrayOfString. /// ArrayArrayOfInteger. /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + 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 d48b618b27a..42d1c82c8e6 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 @@ -39,14 +39,14 @@ public partial class Capitalization : IEquatable /// 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)) + 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 567c97f7a71..42ca12dc9b7 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 @@ -39,9 +39,9 @@ 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) + 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 6b98cae97bd..c05b14f8bfa 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 @@ -35,10 +35,10 @@ public partial class Category : IEquatable /// /// Id. /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + 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 54842287cf6..b956216e380 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 @@ -34,9 +34,9 @@ public partial class ClassModel : IEquatable /// Initializes a new instance of the class. /// /// Class. - public ClassModel(string Class = default(string)) + 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 f33616ffd82..52eb0cec55f 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 @@ -39,9 +39,9 @@ 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) + 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 eec89794289..25f214f77ec 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 @@ -86,10 +86,10 @@ public enum ArrayEnumEnum /// /// JustSymbol. /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + 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 9e4f6a56b62..52de3c361e2 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 @@ -122,12 +122,12 @@ public enum EnumNumberEnum /// EnumInteger. /// EnumNumber. /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(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 02f96e6c5be..4c3f3b506f7 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 @@ -51,53 +51,53 @@ protected FormatTest() { } /// 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)) + 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/List.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/List.cs index 3c18bb2bcb8..0b5175fabb8 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/List.cs @@ -34,9 +34,9 @@ public partial class List : IEquatable /// Initializes a new instance of the class. /// /// _123List. - public List(string _123List = default(string)) + public List(string 123List = default(string)) { - this._123List = _123List; + this._123List = 123List; } /// 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 3b6655b284b..8359906c413 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 @@ -61,10 +61,10 @@ public enum InnerEnum /// /// MapMapOfString. /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + 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 3d4b0ed66d2..19ee7c839f9 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 @@ -36,11 +36,11 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableUuid. /// DateTime. /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + 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 d81f20e5757..869f9da7312 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 @@ -35,10 +35,10 @@ public partial class Model200Response : IEquatable /// /// Name. /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + 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 db5426bfb05..baaa048c19c 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 @@ -34,9 +34,9 @@ public partial class ModelClient : IEquatable /// Initializes a new instance of the class. /// /// __Client. - public ModelClient(string __Client = default(string)) + 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 4e9e284aea6..6d8c2fc228f 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 @@ -40,18 +40,18 @@ protected Name() { } /// /// _Name (required). /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + 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 d238193aa8f..60115612acb 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 @@ -34,9 +34,9 @@ public partial class NumberOnly : IEquatable /// Initializes a new instance of the class. /// /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + 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 a800f2e11f4..9cbe66355da 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 @@ -72,21 +72,21 @@ public enum StatusEnum /// 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) + 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; + 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) + 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 f29a8e55202..00b5d284924 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 @@ -36,11 +36,11 @@ public partial class OuterComposite : IEquatable /// MyNumber. /// MyString. /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + 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 12c1937f9bf..6b0b9c36f4f 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 @@ -77,30 +77,30 @@ protected Pet() { } /// 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?)) + 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 cf8176592f6..6ad7b4653b8 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 @@ -34,9 +34,9 @@ public partial class ReadOnlyFirst : IEquatable /// Initializes a new instance of the class. /// /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + 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 0743d0ffa75..7a880517ee3 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 @@ -34,9 +34,9 @@ public partial class Return : IEquatable /// Initializes a new instance of the class. /// /// _Return. - public Return(int? _Return = default(int?)) + 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 b103d5e6144..f0c12578701 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 @@ -34,9 +34,9 @@ public partial class SpecialModelName : IEquatable /// Initializes a new instance of the class. /// /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + 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 d21e67778dd..bbc6bad7d61 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 @@ -35,10 +35,10 @@ public partial class Tag : IEquatable /// /// Id. /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + 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 584ec8c310d..aba909e1500 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 @@ -41,16 +41,16 @@ public partial class User : IEquatable /// 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?)) + 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 c11ae7e72f4..76d841ed9db 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 @@ -35,10 +35,10 @@ public partial class AdditionalPropertiesClass : IEquatable /// MapProperty. /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + 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 9b44060fb85..5fe37fe9ddd 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 @@ -44,25 +44,25 @@ protected Animal() { } /// /// ClassName (required). /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "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) + 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 e4e7048711c..74f0eb559c8 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 @@ -36,11 +36,11 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Code. /// Type. /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + 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 24f51e9010e..a5dd8feb331 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 @@ -34,9 +34,9 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + 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 44513c21762..01b83954bda 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 @@ -34,9 +34,9 @@ public partial class ArrayOfNumberOnly : IEquatable, IValida /// Initializes a new instance of the class. /// /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + 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 d6d3917a89d..b64f45854ed 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 @@ -36,11 +36,11 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// ArrayOfString. /// ArrayArrayOfInteger. /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + 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 78af1207503..e10ea6f12cb 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 @@ -39,14 +39,14 @@ public partial class Capitalization : IEquatable, IValidatableO /// 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)) + 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 b012af5de70..58f93812c51 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 @@ -39,9 +39,9 @@ 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) + 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 af12c8c3b39..2037827e827 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 @@ -35,10 +35,10 @@ public partial class Category : IEquatable, IValidatableObject /// /// Id. /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + 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 cd82cd31dec..d177155bcb1 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 @@ -34,9 +34,9 @@ public partial class ClassModel : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// Class. - public ClassModel(string Class = default(string)) + 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 f92b01a5bfb..388e3db233b 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 @@ -39,9 +39,9 @@ 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) + 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 7b5b206889f..d9a33a3ede4 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 @@ -86,10 +86,10 @@ public enum ArrayEnumEnum /// /// JustSymbol. /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + 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 df4ebc66c81..d31ae0224c7 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 @@ -122,12 +122,12 @@ public enum EnumNumberEnum /// EnumInteger. /// EnumNumber. /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(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 4a0c3f97383..14672cd8a92 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 @@ -51,53 +51,53 @@ protected FormatTest() { } /// 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)) + 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/List.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/List.cs index eb3f6dacfe2..89c7d160e2c 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/List.cs @@ -34,9 +34,9 @@ public partial class List : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// _123List. - public List(string _123List = default(string)) + public List(string 123List = default(string)) { - this._123List = _123List; + this._123List = 123List; } /// 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 e68482ececc..197e734f01d 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 @@ -61,10 +61,10 @@ public enum InnerEnum /// /// MapMapOfString. /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + 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 ff71e5b3d5b..3f386bc5328 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 @@ -36,11 +36,11 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableUuid. /// DateTime. /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + 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 ece573ce162..ebff47f2829 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 @@ -35,10 +35,10 @@ public partial class Model200Response : IEquatable, IValidata /// /// Name. /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + 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 117463e0bf4..5b875fe200a 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 @@ -34,9 +34,9 @@ public partial class ModelClient : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// __Client. - public ModelClient(string __Client = default(string)) + 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 31c8e25bcd1..e33abeac0e8 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 @@ -40,18 +40,18 @@ protected Name() { } /// /// _Name (required). /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + 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 27f1522e63d..de9669875ba 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 @@ -34,9 +34,9 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + 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 c8bddf3c33e..fd2cb696092 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 @@ -72,21 +72,21 @@ public enum StatusEnum /// 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) + 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; + 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) + 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 5b14554b643..b9a8d30f155 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 @@ -36,11 +36,11 @@ public partial class OuterComposite : IEquatable, IValidatableO /// MyNumber. /// MyString. /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + 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 c218ecd4840..04ec440be8b 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 @@ -77,30 +77,30 @@ protected Pet() { } /// 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?)) + 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 af7030e59a3..be26110613c 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 @@ -34,9 +34,9 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObj /// Initializes a new instance of the class. /// /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + 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 39b03628206..9772a842ab0 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 @@ -34,9 +34,9 @@ public partial class Return : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// _Return. - public Return(int? _Return = default(int?)) + 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 177e401ec96..1bf9414303a 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 @@ -34,9 +34,9 @@ public partial class SpecialModelName : IEquatable, IValidata /// Initializes a new instance of the class. /// /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + 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 4ad09373c43..e230a4f1948 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 @@ -35,10 +35,10 @@ public partial class Tag : IEquatable, IValidatableObject /// /// Id. /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + 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 773882600b3..bf03ee98454 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 @@ -41,16 +41,16 @@ public partial class User : IEquatable, IValidatableObject /// 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?)) + 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 51b5d86bf47..b67976ea412 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 @@ -33,10 +33,10 @@ public partial class AdditionalPropertiesClass : IEquatable /// MapProperty. /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + 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 b0b642e09ff..880e6c9aba0 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 @@ -42,25 +42,25 @@ protected Animal() { } /// /// ClassName (required). /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "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) + 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 5e03eeda044..69c5448cd45 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 @@ -34,11 +34,11 @@ public partial class ApiResponse : IEquatable /// Code. /// Type. /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + 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 f2202240e70..2f53bed4ce7 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 @@ -32,9 +32,9 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + 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 ab2deba2484..f599bc0245b 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 @@ -32,9 +32,9 @@ public partial class ArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + 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 992dc11e15b..898a0f60ef8 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 @@ -34,11 +34,11 @@ public partial class ArrayTest : IEquatable /// ArrayOfString. /// ArrayArrayOfInteger. /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + 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 69794a2be1a..9a360acbd23 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 @@ -37,14 +37,14 @@ public partial class Capitalization : IEquatable /// 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)) + 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 555746a83fe..ced984820df 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 @@ -37,9 +37,9 @@ 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) + 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 1d553e47109..84f3b0aa397 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 @@ -33,10 +33,10 @@ public partial class Category : IEquatable /// /// Id. /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + 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 67e9e204d0a..428522cd133 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 @@ -32,9 +32,9 @@ public partial class ClassModel : IEquatable /// Initializes a new instance of the class. /// /// Class. - public ClassModel(string Class = default(string)) + 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 672511560d0..c0d9dee3fc7 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 @@ -37,9 +37,9 @@ 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) + 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 5391fb4a8e2..4f9107b86c7 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 @@ -84,10 +84,10 @@ public enum ArrayEnumEnum /// /// JustSymbol. /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + 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 d734025d483..e919e16b9e5 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 @@ -120,12 +120,12 @@ public enum EnumNumberEnum /// EnumInteger. /// EnumNumber. /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(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 8507759542f..57c76c2507c 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 @@ -49,53 +49,53 @@ protected FormatTest() { } /// 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)) + 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/List.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs index 8e584d1d945..0694053df4a 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs @@ -32,9 +32,9 @@ public partial class List : IEquatable /// Initializes a new instance of the class. /// /// _123List. - public List(string _123List = default(string)) + public List(string 123List = default(string)) { - this._123List = _123List; + this._123List = 123List; } /// 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 7563ad74afa..5d02d54ae0a 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 @@ -59,10 +59,10 @@ public enum InnerEnum /// /// MapMapOfString. /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + 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 15ac5cd269c..e89aeca0280 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 @@ -34,11 +34,11 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableUuid. /// DateTime. /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + 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 a0ea98056e6..8bc742e8f0b 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 @@ -33,10 +33,10 @@ public partial class Model200Response : IEquatable /// /// Name. /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + 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 cd1aee27b4c..383cf2d20f6 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 @@ -32,9 +32,9 @@ public partial class ModelClient : IEquatable /// Initializes a new instance of the class. /// /// __Client. - public ModelClient(string __Client = default(string)) + 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 ac996069e08..c58122642f2 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 @@ -38,18 +38,18 @@ protected Name() { } /// /// _Name (required). /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + 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 3c3e83b2262..8bcf3144445 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 @@ -32,9 +32,9 @@ public partial class NumberOnly : IEquatable /// Initializes a new instance of the class. /// /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + 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 3d2c54c6556..b5cbd23c239 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 @@ -70,21 +70,21 @@ public enum StatusEnum /// 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) + 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; + 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) + 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 46fbc5e21b2..29f942b96a0 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 @@ -34,11 +34,11 @@ public partial class OuterComposite : IEquatable /// MyNumber. /// MyString. /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + 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 3f1ae834393..043cef30840 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 @@ -75,30 +75,30 @@ protected Pet() { } /// 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?)) + 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 2565a394a73..92ff5d69c66 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 @@ -32,9 +32,9 @@ public partial class ReadOnlyFirst : IEquatable /// Initializes a new instance of the class. /// /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + 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 b11bad752f9..3622672efb5 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 @@ -32,9 +32,9 @@ public partial class Return : IEquatable /// Initializes a new instance of the class. /// /// _Return. - public Return(int? _Return = default(int?)) + 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 865845c329a..58240777080 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 @@ -32,9 +32,9 @@ public partial class SpecialModelName : IEquatable /// Initializes a new instance of the class. /// /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + 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 45aa6818bd1..f29a6bd9e13 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 @@ -33,10 +33,10 @@ public partial class Tag : IEquatable /// /// Id. /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + 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 30c411ed952..8bb381729b0 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 @@ -39,16 +39,16 @@ public partial class User : IEquatable /// 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?)) + 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 39b40dad938..a859f254653 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 @@ -38,10 +38,10 @@ public partial class AdditionalPropertiesClass : IEquatable /// MapProperty. /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + 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 e99145ac092..3aba6665cf7 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 @@ -47,25 +47,25 @@ protected Animal() { } /// /// ClassName (required). /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "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) + 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 9e6f328dec7..a94a5652ada 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 @@ -39,11 +39,11 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Code. /// Type. /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + 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 b576f5e980c..b588afe5d37 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 @@ -37,9 +37,9 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + 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 f6dfc3d3c3e..6cabf61f125 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 @@ -37,9 +37,9 @@ public partial class ArrayOfNumberOnly : IEquatable, IValida /// Initializes a new instance of the class. /// /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + 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 4cc97026da2..139ba622d6b 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 @@ -39,11 +39,11 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// ArrayOfString. /// ArrayArrayOfInteger. /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + 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 09b2b86102d..a87f29d43f7 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 @@ -42,14 +42,14 @@ public partial class Capitalization : IEquatable, IValidatableO /// 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)) + 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 ec8d4fb6030..2be6b0e0115 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 @@ -42,9 +42,9 @@ 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) + 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 87b93ebb81c..47a248d2f23 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 @@ -38,10 +38,10 @@ public partial class Category : IEquatable, IValidatableObject /// /// Id. /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + 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 f52476f7b29..5d4bc6dd115 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 @@ -37,9 +37,9 @@ public partial class ClassModel : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// Class. - public ClassModel(string Class = default(string)) + 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 12f06f9ae53..f024256042a 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 @@ -42,9 +42,9 @@ 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) + 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 3f408068bad..0688702df9a 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 @@ -89,10 +89,10 @@ public enum ArrayEnumEnum /// /// JustSymbol. /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + 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 846dd43ab51..835d611ca58 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 @@ -125,12 +125,12 @@ public enum EnumNumberEnum /// EnumInteger. /// EnumNumber. /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(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 c92aed7f349..628d7830ca6 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 @@ -54,53 +54,53 @@ protected FormatTest() { } /// 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)) + 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/List.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs index 6c76124c23a..75fbee4f9d6 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs @@ -37,9 +37,9 @@ public partial class List : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// _123List. - public List(string _123List = default(string)) + public List(string 123List = default(string)) { - this._123List = _123List; + this._123List = 123List; } /// 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 7ab7098dc8f..6864ce40243 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 @@ -64,10 +64,10 @@ public enum InnerEnum /// /// MapMapOfString. /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + 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 d69f7f54a7a..1e223eb166d 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 @@ -39,11 +39,11 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableUuid. /// DateTime. /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + 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 5503837c064..21b6f4573fc 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 @@ -38,10 +38,10 @@ public partial class Model200Response : IEquatable, IValidata /// /// Name. /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + 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 1fe5ee1c1be..7ea64c1fdf8 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 @@ -37,9 +37,9 @@ public partial class ModelClient : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// __Client. - public ModelClient(string __Client = default(string)) + 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 ce4fa8672d9..d767f8da2d0 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 @@ -43,18 +43,18 @@ protected Name() { } /// /// _Name (required). /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + 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 ce574d1945d..83616894420 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 @@ -37,9 +37,9 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + 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 f7da8aa6862..234da93d1bb 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 @@ -75,21 +75,21 @@ public enum StatusEnum /// 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) + 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; + 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) + 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 bba9945febb..59df8eda7d4 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 @@ -39,11 +39,11 @@ public partial class OuterComposite : IEquatable, IValidatableO /// MyNumber. /// MyString. /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + 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 f44ebee2ef8..1585eef5469 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 @@ -80,30 +80,30 @@ protected Pet() { } /// 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?)) + 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 f65a429bb07..31369f51440 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 @@ -37,9 +37,9 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObj /// Initializes a new instance of the class. /// /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + 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 c8b264faba1..8ad53edc278 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 @@ -37,9 +37,9 @@ public partial class Return : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// _Return. - public Return(int? _Return = default(int?)) + 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 b7756fa21bd..12013ab8e8e 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 @@ -37,9 +37,9 @@ public partial class SpecialModelName : IEquatable, IValidata /// Initializes a new instance of the class. /// /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + 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 f47899d1130..7f5f9ba0bb2 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 @@ -38,10 +38,10 @@ public partial class Tag : IEquatable, IValidatableObject /// /// Id. /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + 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 f815c1c0803..abef5e9ff4a 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 @@ -44,16 +44,16 @@ public partial class User : IEquatable, IValidatableObject /// 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?)) + 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; } /// From d9dc9d4a0b22c6b6e24977f54c3a1131b406e547 Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Sun, 28 Jan 2018 15:29:14 -0500 Subject: [PATCH 3/5] [csharp] Remove client models generated from a different spec. --- .../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 ----------- .../src/IO.Swagger/Model/ModelReturn.cs | 124 ------------------ 7 files changed, 21 insertions(+), 234 deletions(-) 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/samples/client/petstore/csharp/SwaggerClient/docs/ModelReturn.md b/samples/client/petstore/csharp/SwaggerClient/docs/ModelReturn.md deleted file mode 100644 index 9895ccde2b0..00000000000 --- 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 2589ea4ecea..fd22d2a3d86 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 3ae16b2fc6b..cd3f8ff3c66 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 cdb0c1960c2..0c2923ce04b 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 f552ab92959..8aacfe5e13a 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 7c9ca513a7d..00000000000 --- 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/ModelReturn.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs deleted file mode 100644 index 412c676a8ad..00000000000 --- 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; - } - } - -} From 9d5eeb332be44ee28005a57468faf5652a2e630c Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Sun, 28 Jan 2018 21:11:08 -0500 Subject: [PATCH 4/5] [csharp] Escape reserved words on camelcase/lowercase lambdas --- .../io/swagger/codegen/CodegenConfig.java | 2 + .../languages/AbstractCSharpCodegen.java | 5 ++- .../languages/KotlinServerCodegen.java | 4 +- .../codegen/mustache/CamelCaseLambda.java | 38 ++++++++++++++++++- .../codegen/mustache/LowercaseLambda.java | 19 +++++++++- .../resources/csharp/modelGeneric.mustache | 20 +++++----- .../codegen/mustache/CamelCaseLambdaTest.java | 27 +++++++++++-- .../codegen/mustache/LowercaseLambdaTest.java | 18 +++++++++ ...yClassWithInvalidRequiredEnumUsageOnRef.cs | 4 +- .../Model/MyClassWithOptionalEnum.cs | 6 +-- .../Model/MyClassWithOptionalInlineEnum.cs | 6 +-- .../Model/MyClassWithRequiredInlineEnum.cs | 6 +-- 12 files changed, 123 insertions(+), 32 deletions(-) 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 bd44d7a3979..1e9925a2e9c 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 19313e05666..6e08cd79885 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 @@ -315,10 +315,11 @@ 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()) + .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, " ")) 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 092ec067278..291c8c88058 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 @@ -188,10 +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()) + .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 index 9ea2bf50350..df677ea6fce 100644 --- 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 @@ -1,8 +1,12 @@ 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; @@ -21,9 +25,39 @@ * */ 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 = fragment.execute(); - writer.write(DefaultCodegen.camelize(text, true)); + 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 1bc239e850a..300ee0517bf 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 104a7515de6..99e0b090143 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}} {{#lambda.camelcase}}{{name}}{{/lambda.camelcase}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}{{#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 "{{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}" is required (not null) - if ({{#lambda.camelcase}}{{name}}{{/lambda.camelcase}} == 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("{{#lambda.camelcase}}{{name}}{{/lambda.camelcase}} 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}} = {{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}; + 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 ({{#lambda.camelcase}}{{name}}{{/lambda.camelcase}} == 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}} = {{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}; + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; } {{/defaultValue}} {{^defaultValue}} -this.{{name}} = {{#lambda.camelcase}}{{name}}{{/lambda.camelcase}}; +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 index a87215f4b95..98300bf0168 100644 --- 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 @@ -1,5 +1,8 @@ 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; @@ -8,18 +11,31 @@ 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(), + "camelcase", new CamelCaseLambda().generator(this.generator).escapeAsParamName(this.escapeAsParamName), "value", this.input ); @@ -42,11 +58,16 @@ public static Object[] factoryMethod() { new CamelCaseLambdaTest("inputText", "inputText"), new CamelCaseLambdaTest("input_text", "inputText"), - // TODO: This may be unexpected, but is the result of DefaultCodegen.camelize. + // 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") + 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 8405f732cf4..a62f28f16b4 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 ea4638e1af1..75a72f93608 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,8 +38,8 @@ public partial class MyClassWithInvalidRequiredEnumUsageOnRef : IEquatable /// Initializes a new instance of the class. /// - /// First. - /// Days. + /// first. + /// days. public MyClassWithInvalidRequiredEnumUsageOnRef(bool? first = default(bool?), WeekDays? days = default(WeekDays?)) { this.First = first; 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 3da1f50625b..9f04ce13db3 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,9 +38,9 @@ public partial class MyClassWithOptionalEnum : IEquatable /// Initializes a new instance of the class. /// - /// Quarantine. - /// Grayware. - /// Days. + /// quarantine. + /// grayware. + /// days. public MyClassWithOptionalEnum(bool? quarantine = default(bool?), bool? grayware = default(bool?), WeekDays? days = default(WeekDays?)) { this.Quarantine = quarantine; 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 f97457251b3..e82cadf8467 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,9 +88,9 @@ public enum DaysEnum /// /// Initializes a new instance of the class. /// - /// Quarantine. - /// Grayware. - /// Days. + /// quarantine. + /// grayware. + /// days. public MyClassWithOptionalInlineEnum(bool? quarantine = default(bool?), bool? grayware = default(bool?), DaysEnum? days = default(DaysEnum?)) { this.Quarantine = quarantine; 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 3e5db977c51..73b652b1fcc 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,9 +93,9 @@ protected MyClassWithRequiredInlineEnum() { } /// /// Initializes a new instance of the class. /// - /// Quarantine. - /// Grayware. - /// Days (required). + /// 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) From 13bab855de853e9467666d72b271f43f14f7e0f6 Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Sun, 28 Jan 2018 22:29:04 -0500 Subject: [PATCH 5/5] [csharp] Regenerate samples --- .../Model/AdditionalPropertiesClass.cs | 4 +- .../src/IO.Swagger/Model/Animal.cs | 6 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 6 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayTest.cs | 6 +-- .../src/IO.Swagger/Model/Capitalization.cs | 12 +++--- .../SwaggerClient/src/IO.Swagger/Model/Cat.cs | 2 +- .../src/IO.Swagger/Model/Category.cs | 4 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +-- .../SwaggerClient/src/IO.Swagger/Model/Dog.cs | 2 +- .../src/IO.Swagger/Model/EnumArrays.cs | 4 +- .../src/IO.Swagger/Model/EnumTest.cs | 8 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 42 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 4 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Model200Response.cs | 8 ++-- .../src/IO.Swagger/Model/ModelClient.cs | 6 +-- .../src/IO.Swagger/Model/Name.cs | 4 +- .../src/IO.Swagger/Model/NumberOnly.cs | 2 +- .../src/IO.Swagger/Model/Order.cs | 14 +++---- .../src/IO.Swagger/Model/OuterComposite.cs | 6 +-- .../SwaggerClient/src/IO.Swagger/Model/Pet.cs | 12 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 2 +- .../src/IO.Swagger/Model/Return.cs | 6 +-- .../src/IO.Swagger/Model/SpecialModelName.cs | 2 +- .../SwaggerClient/src/IO.Swagger/Model/Tag.cs | 4 +- .../src/IO.Swagger/Model/User.cs | 16 +++---- .../Model/AdditionalPropertiesClass.cs | 4 +- .../src/IO.Swagger/Model/Animal.cs | 6 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 6 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayTest.cs | 6 +-- .../src/IO.Swagger/Model/Capitalization.cs | 12 +++--- .../src/IO.Swagger/Model/Cat.cs | 2 +- .../src/IO.Swagger/Model/Category.cs | 4 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +-- .../src/IO.Swagger/Model/Dog.cs | 2 +- .../src/IO.Swagger/Model/EnumArrays.cs | 4 +- .../src/IO.Swagger/Model/EnumTest.cs | 8 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 42 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 4 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Model200Response.cs | 8 ++-- .../src/IO.Swagger/Model/ModelClient.cs | 6 +-- .../src/IO.Swagger/Model/Name.cs | 4 +- .../src/IO.Swagger/Model/NumberOnly.cs | 2 +- .../src/IO.Swagger/Model/Order.cs | 14 +++---- .../src/IO.Swagger/Model/OuterComposite.cs | 6 +-- .../src/IO.Swagger/Model/Pet.cs | 12 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 2 +- .../src/IO.Swagger/Model/Return.cs | 6 +-- .../src/IO.Swagger/Model/SpecialModelName.cs | 2 +- .../src/IO.Swagger/Model/Tag.cs | 4 +- .../src/IO.Swagger/Model/User.cs | 16 +++---- .../Model/AdditionalPropertiesClass.cs | 4 +- .../src/IO.Swagger/Model/Animal.cs | 6 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 6 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayTest.cs | 6 +-- .../src/IO.Swagger/Model/Capitalization.cs | 12 +++--- .../src/IO.Swagger/Model/Cat.cs | 2 +- .../src/IO.Swagger/Model/Category.cs | 4 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +-- .../src/IO.Swagger/Model/Dog.cs | 2 +- .../src/IO.Swagger/Model/EnumArrays.cs | 4 +- .../src/IO.Swagger/Model/EnumTest.cs | 8 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 42 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 4 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Model200Response.cs | 8 ++-- .../src/IO.Swagger/Model/ModelClient.cs | 6 +-- .../src/IO.Swagger/Model/Name.cs | 4 +- .../src/IO.Swagger/Model/NumberOnly.cs | 2 +- .../src/IO.Swagger/Model/Order.cs | 14 +++---- .../src/IO.Swagger/Model/OuterComposite.cs | 6 +-- .../src/IO.Swagger/Model/Pet.cs | 12 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 2 +- .../src/IO.Swagger/Model/Return.cs | 6 +-- .../src/IO.Swagger/Model/SpecialModelName.cs | 2 +- .../src/IO.Swagger/Model/Tag.cs | 4 +- .../src/IO.Swagger/Model/User.cs | 16 +++---- .../Model/AdditionalPropertiesClass.cs | 4 +- .../src/IO.Swagger/Model/Animal.cs | 6 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 6 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayTest.cs | 6 +-- .../src/IO.Swagger/Model/Capitalization.cs | 12 +++--- .../src/IO.Swagger/Model/Cat.cs | 2 +- .../src/IO.Swagger/Model/Category.cs | 4 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +-- .../src/IO.Swagger/Model/Dog.cs | 2 +- .../src/IO.Swagger/Model/EnumArrays.cs | 4 +- .../src/IO.Swagger/Model/EnumTest.cs | 8 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 42 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 4 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Model200Response.cs | 8 ++-- .../src/IO.Swagger/Model/ModelClient.cs | 6 +-- .../src/IO.Swagger/Model/Name.cs | 4 +- .../src/IO.Swagger/Model/NumberOnly.cs | 2 +- .../src/IO.Swagger/Model/Order.cs | 14 +++---- .../src/IO.Swagger/Model/OuterComposite.cs | 6 +-- .../src/IO.Swagger/Model/Pet.cs | 12 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 2 +- .../src/IO.Swagger/Model/Return.cs | 6 +-- .../src/IO.Swagger/Model/SpecialModelName.cs | 2 +- .../src/IO.Swagger/Model/Tag.cs | 4 +- .../src/IO.Swagger/Model/User.cs | 16 +++---- .../Model/AdditionalPropertiesClass.cs | 4 +- .../src/IO.Swagger/Model/Animal.cs | 6 +-- .../src/IO.Swagger/Model/ApiResponse.cs | 6 +-- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayOfNumberOnly.cs | 2 +- .../src/IO.Swagger/Model/ArrayTest.cs | 6 +-- .../src/IO.Swagger/Model/Capitalization.cs | 12 +++--- .../src/IO.Swagger/Model/Cat.cs | 2 +- .../src/IO.Swagger/Model/Category.cs | 4 +- .../src/IO.Swagger/Model/ClassModel.cs | 6 +-- .../src/IO.Swagger/Model/Dog.cs | 2 +- .../src/IO.Swagger/Model/EnumArrays.cs | 4 +- .../src/IO.Swagger/Model/EnumTest.cs | 8 ++-- .../src/IO.Swagger/Model/FormatTest.cs | 42 +++++++++---------- .../src/IO.Swagger/Model/List.cs | 4 +- .../src/IO.Swagger/Model/MapTest.cs | 4 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 6 +-- .../src/IO.Swagger/Model/Model200Response.cs | 8 ++-- .../src/IO.Swagger/Model/ModelClient.cs | 6 +-- .../src/IO.Swagger/Model/Name.cs | 4 +- .../src/IO.Swagger/Model/NumberOnly.cs | 2 +- .../src/IO.Swagger/Model/Order.cs | 14 +++---- .../src/IO.Swagger/Model/OuterComposite.cs | 6 +-- .../src/IO.Swagger/Model/Pet.cs | 12 +++--- .../src/IO.Swagger/Model/ReadOnlyFirst.cs | 2 +- .../src/IO.Swagger/Model/Return.cs | 6 +-- .../src/IO.Swagger/Model/SpecialModelName.cs | 2 +- .../src/IO.Swagger/Model/Tag.cs | 4 +- .../src/IO.Swagger/Model/User.cs | 16 +++---- 145 files changed, 505 insertions(+), 505 deletions(-) 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 76d841ed9db..c9a5dbc1f1d 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,8 +33,8 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. + /// mapProperty. + /// mapOfMapProperty. public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { this.MapProperty = mapProperty; 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 5fe37fe9ddd..3c2f0134e36 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,8 +42,8 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). + /// className (required). + /// color (default to "red"). public Animal(string className = default(string), string color = "red") { // to ensure "className" is required (not null) @@ -55,7 +55,7 @@ protected Animal() { } { this.ClassName = className; } - // use default value if no "Color" provided + // use default value if no "color" provided if (color == null) { this.Color = "red"; 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 74f0eb559c8..32a2d8a7153 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,9 +33,9 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. + /// code. + /// type. + /// message. public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; 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 a5dd8feb331..5d868983b5d 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,7 +33,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. + /// arrayArrayNumber. public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { 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 01b83954bda..6f265e2889c 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,7 +33,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValida /// /// Initializes a new instance of the class. /// - /// ArrayNumber. + /// arrayNumber. public ArrayOfNumberOnly(List arrayNumber = default(List)) { 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 b64f45854ed..5c214054576 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,9 +33,9 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; 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 e10ea6f12cb..f2512000b6d 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,12 +33,12 @@ public partial class Capitalization : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . + /// 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; 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 58f93812c51..bf0aedbb4eb 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,7 +38,7 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. + /// declawed. public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { 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 2037827e827..0e82265da50 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,8 +33,8 @@ public partial class Category : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Category(long? id = default(long?), string name = default(string)) { this.Id = id; 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 d177155bcb1..aea6930a2c6 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 388e3db233b..4705f66264d 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,7 +38,7 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. + /// breed. public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { 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 d9a33a3ede4..2d5b4c88421 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,8 +84,8 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. + /// justSymbol. + /// arrayEnum. public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { this.JustSymbol = justSymbol; 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 d31ae0224c7..5f4b84d5b7e 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,10 +118,10 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// 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; 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 14672cd8a92..129677abb0f 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,20 +38,20 @@ 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) @@ -62,14 +62,14 @@ protected FormatTest() { } { 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) @@ -92,9 +92,9 @@ protected FormatTest() { } this.Integer = integer; this.Int32 = int32; this.Int64 = int64; - this.Float = float; - this.Double = double; - this.String = string; + 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/List.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs index 89c7d160e2c..eb3f6dacfe2 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs @@ -34,9 +34,9 @@ public partial class List : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// _123List. - public List(string 123List = default(string)) + public List(string _123List = default(string)) { - this._123List = 123List; + this._123List = _123List; } /// 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 197e734f01d..6eb0ef0ee34 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,8 +59,8 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. + /// mapMapOfString. + /// mapOfEnumString. public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { this.MapMapOfString = mapMapOfString; 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 3f386bc5328..9c84755b622 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,9 +33,9 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. + /// uuid. + /// dateTime. + /// map. public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.Uuid = uuid; 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 ebff47f2829..7fccbdc1fce 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.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 5b875fe200a..aa02d34addc 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/Name.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Name.cs index e33abeac0e8..1658622043b 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,8 +38,8 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. + /// name (required). + /// property. public Name(int? name = default(int?), string property = default(string)) { // to ensure "name" is required (not null) 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 de9669875ba..33158907b92 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,7 +33,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// JustNumber. + /// justNumber. public NumberOnly(decimal? justNumber = default(decimal?)) { 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 fd2cb696092..2461d92147b 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,12 +66,12 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to 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; @@ -79,7 +79,7 @@ public enum StatusEnum this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - // use default value if no "Complete" provided + // use default value if no "complete" provided if (complete == null) { this.Complete = false; 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 b9a8d30f155..fa1ff0cb876 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,9 +33,9 @@ public partial class OuterComposite : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. + /// myNumber. + /// myString. + /// myBoolean. public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { this.MyNumber = myNumber; 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 04ec440be8b..8cbe466db8f 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,12 +71,12 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. + /// 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) 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 be26110613c..7dd0d142586 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,7 +33,7 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObj /// /// Initializes a new instance of the class. /// - /// Baz. + /// baz. public ReadOnlyFirst(string baz = default(string)) { 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 9772a842ab0..0c2b3129633 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 1bf9414303a..c8355cf7871 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,7 +33,7 @@ public partial class SpecialModelName : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. + /// specialPropertyName. public SpecialModelName(long? specialPropertyName = default(long?)) { 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 e230a4f1948..535477cd98e 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,8 +33,8 @@ public partial class Tag : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; 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 bf03ee98454..a74e2de7260 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,14 +33,14 @@ public partial class User : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. + /// 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; 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 563ed1dc71d..53794bea4b8 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,8 +33,8 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. + /// mapProperty. + /// mapOfMapProperty. public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { this.MapProperty = mapProperty; 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 d76f428dc7c..67c4ded80b0 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,8 +42,8 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). + /// className (required). + /// color (default to "red"). public Animal(string className = default(string), string color = "red") { // to ensure "className" is required (not null) @@ -55,7 +55,7 @@ protected Animal() { } { this.ClassName = className; } - // use default value if no "Color" provided + // use default value if no "color" provided if (color == null) { this.Color = "red"; 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 1dc55832ea5..8da0d9583e5 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,9 +33,9 @@ public partial class ApiResponse : IEquatable /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. + /// code. + /// type. + /// message. public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; 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 1fd26b59ec7..14ae6878a0c 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,7 +33,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. + /// arrayArrayNumber. public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { 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 bdeddbfc0e6..52dd89f405e 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,7 +33,7 @@ public partial class ArrayOfNumberOnly : IEquatable /// /// Initializes a new instance of the class. /// - /// ArrayNumber. + /// arrayNumber. public ArrayOfNumberOnly(List arrayNumber = default(List)) { 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 2140bc02182..a490f3b8704 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,9 +33,9 @@ public partial class ArrayTest : IEquatable /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; 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 42d1c82c8e6..a5ad99c1643 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,12 +33,12 @@ public partial class Capitalization : IEquatable /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . + /// 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; 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 42ca12dc9b7..9aae8f64ccb 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,7 +38,7 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. + /// declawed. public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { 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 c05b14f8bfa..ef73c50ba41 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,8 +33,8 @@ public partial class Category : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Category(long? id = default(long?), string name = default(string)) { this.Id = id; 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 b956216e380..e10c88981fb 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 52eb0cec55f..8d0522996e6 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,7 +38,7 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. + /// breed. public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { 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 25f214f77ec..3260df07b7a 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,8 +84,8 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. + /// justSymbol. + /// arrayEnum. public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { this.JustSymbol = justSymbol; 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 52de3c361e2..b2a4cf93523 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,10 +118,10 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// 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; 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 4c3f3b506f7..914900d5e54 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,20 +38,20 @@ 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) @@ -62,14 +62,14 @@ protected FormatTest() { } { 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) @@ -92,9 +92,9 @@ protected FormatTest() { } this.Integer = integer; this.Int32 = int32; this.Int64 = int64; - this.Float = float; - this.Double = double; - this.String = string; + 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/List.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/List.cs index 0b5175fabb8..3c18bb2bcb8 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/List.cs @@ -34,9 +34,9 @@ public partial class List : IEquatable /// Initializes a new instance of the class. /// /// _123List. - public List(string 123List = default(string)) + public List(string _123List = default(string)) { - this._123List = 123List; + this._123List = _123List; } /// 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 8359906c413..33c0584e9e2 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,8 +59,8 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. + /// mapMapOfString. + /// mapOfEnumString. public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { this.MapMapOfString = mapMapOfString; 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 19ee7c839f9..7ee14dea5e5 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,9 +33,9 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. + /// uuid. + /// dateTime. + /// map. public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.Uuid = uuid; 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 869f9da7312..1b2562d2984 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.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 baaa048c19c..95efda1013a 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 6d8c2fc228f..2dc637499cd 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,8 +38,8 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. + /// name (required). + /// property. public Name(int? name = default(int?), string property = default(string)) { // to ensure "name" is required (not null) 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 60115612acb..8b70b4352b0 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,7 +33,7 @@ public partial class NumberOnly : IEquatable /// /// Initializes a new instance of the class. /// - /// JustNumber. + /// justNumber. public NumberOnly(decimal? justNumber = default(decimal?)) { 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 9cbe66355da..d2db3195407 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,12 +66,12 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to 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; @@ -79,7 +79,7 @@ public enum StatusEnum this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - // use default value if no "Complete" provided + // use default value if no "complete" provided if (complete == null) { this.Complete = false; 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 00b5d284924..deb058b1979 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,9 +33,9 @@ public partial class OuterComposite : IEquatable /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. + /// myNumber. + /// myString. + /// myBoolean. public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { this.MyNumber = myNumber; 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 6b0b9c36f4f..87275c296cc 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,12 +71,12 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. + /// 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) 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 6ad7b4653b8..9fe864f5b2d 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,7 +33,7 @@ public partial class ReadOnlyFirst : IEquatable /// /// Initializes a new instance of the class. /// - /// Baz. + /// baz. public ReadOnlyFirst(string baz = default(string)) { 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 7a880517ee3..84538651ade 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 f0c12578701..17db9a9d1e8 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,7 +33,7 @@ public partial class SpecialModelName : IEquatable /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. + /// specialPropertyName. public SpecialModelName(long? specialPropertyName = default(long?)) { 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 bbc6bad7d61..642732f5925 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,8 +33,8 @@ public partial class Tag : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; 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 aba909e1500..0e75b43ba4f 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,14 +33,14 @@ public partial class User : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. + /// 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; 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 76d841ed9db..c9a5dbc1f1d 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,8 +33,8 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. + /// mapProperty. + /// mapOfMapProperty. public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { this.MapProperty = mapProperty; 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 5fe37fe9ddd..3c2f0134e36 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,8 +42,8 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). + /// className (required). + /// color (default to "red"). public Animal(string className = default(string), string color = "red") { // to ensure "className" is required (not null) @@ -55,7 +55,7 @@ protected Animal() { } { this.ClassName = className; } - // use default value if no "Color" provided + // use default value if no "color" provided if (color == null) { this.Color = "red"; 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 74f0eb559c8..32a2d8a7153 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,9 +33,9 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. + /// code. + /// type. + /// message. public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; 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 a5dd8feb331..5d868983b5d 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,7 +33,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. + /// arrayArrayNumber. public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { 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 01b83954bda..6f265e2889c 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,7 +33,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValida /// /// Initializes a new instance of the class. /// - /// ArrayNumber. + /// arrayNumber. public ArrayOfNumberOnly(List arrayNumber = default(List)) { 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 b64f45854ed..5c214054576 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,9 +33,9 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; 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 e10ea6f12cb..f2512000b6d 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,12 +33,12 @@ public partial class Capitalization : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . + /// 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; 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 58f93812c51..bf0aedbb4eb 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,7 +38,7 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. + /// declawed. public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { 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 2037827e827..0e82265da50 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,8 +33,8 @@ public partial class Category : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Category(long? id = default(long?), string name = default(string)) { this.Id = id; 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 d177155bcb1..aea6930a2c6 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 388e3db233b..4705f66264d 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,7 +38,7 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. + /// breed. public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { 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 d9a33a3ede4..2d5b4c88421 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,8 +84,8 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. + /// justSymbol. + /// arrayEnum. public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { this.JustSymbol = justSymbol; 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 d31ae0224c7..5f4b84d5b7e 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,10 +118,10 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// 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; 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 14672cd8a92..129677abb0f 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,20 +38,20 @@ 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) @@ -62,14 +62,14 @@ protected FormatTest() { } { 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) @@ -92,9 +92,9 @@ protected FormatTest() { } this.Integer = integer; this.Int32 = int32; this.Int64 = int64; - this.Float = float; - this.Double = double; - this.String = string; + 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/List.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/List.cs index 89c7d160e2c..eb3f6dacfe2 100644 --- a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/List.cs @@ -34,9 +34,9 @@ public partial class List : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// _123List. - public List(string 123List = default(string)) + public List(string _123List = default(string)) { - this._123List = 123List; + this._123List = _123List; } /// 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 197e734f01d..6eb0ef0ee34 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,8 +59,8 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. + /// mapMapOfString. + /// mapOfEnumString. public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { this.MapMapOfString = mapMapOfString; 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 3f386bc5328..9c84755b622 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,9 +33,9 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. + /// uuid. + /// dateTime. + /// map. public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.Uuid = uuid; 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 ebff47f2829..7fccbdc1fce 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.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 5b875fe200a..aa02d34addc 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 e33abeac0e8..1658622043b 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,8 +38,8 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. + /// name (required). + /// property. public Name(int? name = default(int?), string property = default(string)) { // to ensure "name" is required (not null) 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 de9669875ba..33158907b92 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,7 +33,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// JustNumber. + /// justNumber. public NumberOnly(decimal? justNumber = default(decimal?)) { 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 fd2cb696092..2461d92147b 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,12 +66,12 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to 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; @@ -79,7 +79,7 @@ public enum StatusEnum this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - // use default value if no "Complete" provided + // use default value if no "complete" provided if (complete == null) { this.Complete = false; 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 b9a8d30f155..fa1ff0cb876 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,9 +33,9 @@ public partial class OuterComposite : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. + /// myNumber. + /// myString. + /// myBoolean. public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { this.MyNumber = myNumber; 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 04ec440be8b..8cbe466db8f 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,12 +71,12 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. + /// 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) 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 be26110613c..7dd0d142586 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,7 +33,7 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObj /// /// Initializes a new instance of the class. /// - /// Baz. + /// baz. public ReadOnlyFirst(string baz = default(string)) { 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 9772a842ab0..0c2b3129633 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 1bf9414303a..c8355cf7871 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,7 +33,7 @@ public partial class SpecialModelName : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. + /// specialPropertyName. public SpecialModelName(long? specialPropertyName = default(long?)) { 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 e230a4f1948..535477cd98e 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,8 +33,8 @@ public partial class Tag : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; 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 bf03ee98454..a74e2de7260 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,14 +33,14 @@ public partial class User : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. + /// 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; 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 b67976ea412..1a3bb3d1f69 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,8 +31,8 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. + /// mapProperty. + /// mapOfMapProperty. public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { this.MapProperty = mapProperty; 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 880e6c9aba0..7e3b397d2d5 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,8 +40,8 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). + /// className (required). + /// color (default to "red"). public Animal(string className = default(string), string color = "red") { // to ensure "className" is required (not null) @@ -53,7 +53,7 @@ protected Animal() { } { this.ClassName = className; } - // use default value if no "Color" provided + // use default value if no "color" provided if (color == null) { this.Color = "red"; 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 69c5448cd45..86a24a4b711 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,9 +31,9 @@ public partial class ApiResponse : IEquatable /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. + /// code. + /// type. + /// message. public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; 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 2f53bed4ce7..d5f390edca7 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,7 +31,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. + /// arrayArrayNumber. public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { 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 f599bc0245b..2a19536618d 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,7 +31,7 @@ public partial class ArrayOfNumberOnly : IEquatable /// /// Initializes a new instance of the class. /// - /// ArrayNumber. + /// arrayNumber. public ArrayOfNumberOnly(List arrayNumber = default(List)) { 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 898a0f60ef8..b3705a7d770 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,9 +31,9 @@ public partial class ArrayTest : IEquatable /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; 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 9a360acbd23..7529b2a80c5 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,12 +31,12 @@ public partial class Capitalization : IEquatable /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . + /// 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; 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 ced984820df..015746e47c4 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,7 +36,7 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. + /// declawed. public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { 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 84f3b0aa397..bd820603f5c 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,8 +31,8 @@ public partial class Category : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Category(long? id = default(long?), string name = default(string)) { this.Id = id; 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 428522cd133..9c01449fd88 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 c0d9dee3fc7..07cb7d55fa1 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,7 +36,7 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. + /// breed. public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { 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 4f9107b86c7..0642bfe93ba 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,8 +82,8 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. + /// justSymbol. + /// arrayEnum. public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { this.JustSymbol = justSymbol; 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 e919e16b9e5..8a26f250c55 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,10 +116,10 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// 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; 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 57c76c2507c..d7af9916a9f 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,20 +36,20 @@ 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) @@ -60,14 +60,14 @@ protected FormatTest() { } { 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) @@ -90,9 +90,9 @@ protected FormatTest() { } this.Integer = integer; this.Int32 = int32; this.Int64 = int64; - this.Float = float; - this.Double = double; - this.String = string; + 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/List.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs index 0694053df4a..8e584d1d945 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs @@ -32,9 +32,9 @@ public partial class List : IEquatable /// Initializes a new instance of the class. /// /// _123List. - public List(string 123List = default(string)) + public List(string _123List = default(string)) { - this._123List = 123List; + this._123List = _123List; } /// 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 5d02d54ae0a..598f2309c81 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,8 +57,8 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. + /// mapMapOfString. + /// mapOfEnumString. public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { this.MapMapOfString = mapMapOfString; 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 e89aeca0280..b3ee6f35e6c 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,9 +31,9 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. + /// uuid. + /// dateTime. + /// map. public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.Uuid = uuid; 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 8bc742e8f0b..3bf31b5e40f 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.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 383cf2d20f6..909c4ead55a 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 c58122642f2..414ed11b7a3 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,8 +36,8 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. + /// name (required). + /// property. public Name(int? name = default(int?), string property = default(string)) { // to ensure "name" is required (not null) 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 8bcf3144445..05958dc3fd4 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,7 +31,7 @@ public partial class NumberOnly : IEquatable /// /// Initializes a new instance of the class. /// - /// JustNumber. + /// justNumber. public NumberOnly(decimal? justNumber = default(decimal?)) { 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 b5cbd23c239..7f0ae101aa4 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,12 +64,12 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to 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; @@ -77,7 +77,7 @@ public enum StatusEnum this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - // use default value if no "Complete" provided + // use default value if no "complete" provided if (complete == null) { this.Complete = false; 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 29f942b96a0..0bf2d9e57cc 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,9 +31,9 @@ public partial class OuterComposite : IEquatable /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. + /// myNumber. + /// myString. + /// myBoolean. public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { this.MyNumber = myNumber; 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 043cef30840..4d41431009a 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,12 +69,12 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. + /// 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) 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 92ff5d69c66..e2e49cce78f 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,7 +31,7 @@ public partial class ReadOnlyFirst : IEquatable /// /// Initializes a new instance of the class. /// - /// Baz. + /// baz. public ReadOnlyFirst(string baz = default(string)) { 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 3622672efb5..e2a3377dd3b 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 58240777080..d18791b0f91 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,7 +31,7 @@ public partial class SpecialModelName : IEquatable /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. + /// specialPropertyName. public SpecialModelName(long? specialPropertyName = default(long?)) { 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 f29a6bd9e13..0c25af135a7 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,8 +31,8 @@ public partial class Tag : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; 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 8bb381729b0..6c5fb9fb311 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,14 +31,14 @@ public partial class User : IEquatable /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. + /// 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; 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 a859f254653..fa8b7f8f9c8 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,8 +36,8 @@ public partial class AdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. + /// mapProperty. + /// mapOfMapProperty. public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { this.MapProperty = mapProperty; 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 3aba6665cf7..940b1e32ddf 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,8 +45,8 @@ protected Animal() { } /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). + /// className (required). + /// color (default to "red"). public Animal(string className = default(string), string color = "red") { // to ensure "className" is required (not null) @@ -58,7 +58,7 @@ protected Animal() { } { this.ClassName = className; } - // use default value if no "Color" provided + // use default value if no "color" provided if (color == null) { this.Color = "red"; 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 a94a5652ada..20d50827800 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,9 +36,9 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. + /// code. + /// type. + /// message. public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; 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 b588afe5d37..71bc817c7b8 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,7 +36,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. + /// arrayArrayNumber. public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { 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 6cabf61f125..00f642c86d8 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,7 +36,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValida /// /// Initializes a new instance of the class. /// - /// ArrayNumber. + /// arrayNumber. public ArrayOfNumberOnly(List arrayNumber = default(List)) { 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 139ba622d6b..f52b956673d 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,9 +36,9 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; 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 a87f29d43f7..8687f876d13 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,12 +36,12 @@ public partial class Capitalization : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . + /// 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; 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 2be6b0e0115..8fb9222c84c 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,7 +41,7 @@ protected Cat() { } /// /// Initializes a new instance of the class. /// - /// Declawed. + /// declawed. public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { 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 47a248d2f23..1a679cbcdf1 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,8 +36,8 @@ public partial class Category : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Category(long? id = default(long?), string name = default(string)) { this.Id = id; 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 5d4bc6dd115..ae01a328083 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 f024256042a..32a6b8d23df 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,7 +41,7 @@ protected Dog() { } /// /// Initializes a new instance of the class. /// - /// Breed. + /// breed. public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { 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 0688702df9a..9ffc6089123 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,8 +87,8 @@ public enum ArrayEnumEnum /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. + /// justSymbol. + /// arrayEnum. public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { this.JustSymbol = justSymbol; 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 835d611ca58..7a0220cd2d7 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,10 +121,10 @@ public enum EnumNumberEnum /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// 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; 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 628d7830ca6..67bde1f1566 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,20 +41,20 @@ 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) @@ -65,14 +65,14 @@ protected FormatTest() { } { 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) @@ -95,9 +95,9 @@ protected FormatTest() { } this.Integer = integer; this.Int32 = int32; this.Int64 = int64; - this.Float = float; - this.Double = double; - this.String = string; + 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/List.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs index 75fbee4f9d6..6c76124c23a 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs @@ -37,9 +37,9 @@ public partial class List : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// _123List. - public List(string 123List = default(string)) + public List(string _123List = default(string)) { - this._123List = 123List; + this._123List = _123List; } /// 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 6864ce40243..9e1baf5f9a3 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,8 +62,8 @@ public enum InnerEnum /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. + /// mapMapOfString. + /// mapOfEnumString. public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { this.MapMapOfString = mapMapOfString; 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 1e223eb166d..f180fac5195 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,9 +36,9 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. + /// uuid. + /// dateTime. + /// map. public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.Uuid = uuid; 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 21b6f4573fc..6a3b8b189ab 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.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 7ea64c1fdf8..af05d8a3809 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 d767f8da2d0..8958293076e 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,8 +41,8 @@ protected Name() { } /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. + /// name (required). + /// property. public Name(int? name = default(int?), string property = default(string)) { // to ensure "name" is required (not null) 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 83616894420..c47292cbafb 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,7 +36,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// JustNumber. + /// justNumber. public NumberOnly(decimal? justNumber = default(decimal?)) { 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 234da93d1bb..6e3ea268243 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,12 +69,12 @@ public enum StatusEnum /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to 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; @@ -82,7 +82,7 @@ public enum StatusEnum this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - // use default value if no "Complete" provided + // use default value if no "complete" provided if (complete == null) { this.Complete = false; 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 59df8eda7d4..dc3cf0b6920 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,9 +36,9 @@ public partial class OuterComposite : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. + /// myNumber. + /// myString. + /// myBoolean. public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { this.MyNumber = myNumber; 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 1585eef5469..021f39629dc 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,12 +74,12 @@ protected Pet() { } /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. + /// 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) 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 31369f51440..b2a6effca1b 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,7 +36,7 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObj /// /// Initializes a new instance of the class. /// - /// Baz. + /// baz. public ReadOnlyFirst(string baz = default(string)) { 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 8ad53edc278..918a724a179 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 12013ab8e8e..04268626879 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,7 +36,7 @@ public partial class SpecialModelName : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. + /// specialPropertyName. public SpecialModelName(long? specialPropertyName = default(long?)) { 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 7f5f9ba0bb2..ce788676207 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,8 +36,8 @@ public partial class Tag : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. + /// id. + /// name. public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; 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 abef5e9ff4a..d69c7e4a313 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,14 +36,14 @@ public partial class User : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. + /// 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;