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 2d34ae6b1dc..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 @@ -1,6 +1,9 @@ package io.swagger.codegen.languages; +import com.google.common.collect.ImmutableMap; +import com.samskivert.mustache.Mustache; import io.swagger.codegen.*; +import io.swagger.codegen.mustache.*; import io.swagger.codegen.utils.ModelUtils; import io.swagger.models.properties.*; import org.apache.commons.lang3.StringUtils; @@ -21,7 +24,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co protected boolean returnICollection = false; protected boolean netCoreProjectFileFlag = false; - protected String modelPropertyNaming = "PascalCase"; + protected String modelPropertyNaming = CodegenConstants.MODEL_PROPERTY_NAMING_TYPE.PascalCase.name(); protected String packageVersion = "1.0.0"; protected String packageName = "IO.Swagger"; @@ -305,6 +308,32 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co // This either updates additionalProperties with the above fixes, or sets the default if the option was not specified. additionalProperties.put(CodegenConstants.INTERFACE_PREFIX, interfacePrefix); + + addMustacheLambdas(additionalProperties); + } + + private void addMustacheLambdas(Map objs) { + + Map lambdas = new ImmutableMap.Builder() + .put("lowercase", new LowercaseLambda().generator(this)) + .put("uppercase", new UppercaseLambda()) + .put("titlecase", new TitlecaseLambda()) + .put("camelcase", new CamelCaseLambda().generator(this)) + .put("camelcase_param", new CamelCaseLambda().generator(this).escapeAsParamName(true)) + .put("indented", new IndentedLambda()) + .put("indented_8", new IndentedLambda(8, " ")) + .put("indented_12", new IndentedLambda(12, " ")) + .put("indented_16", new IndentedLambda(16, " ")) + .build(); + + if (objs.containsKey("lambda")) { + LOGGER.warn("An property named 'lambda' already exists. Mustache lambdas renamed from 'lambda' to '_lambda'. " + + "You'll likely need to use a custom template, " + + "see https://github.com/swagger-api/swagger-codegen#modifying-the-client-library-format. "); + objs.put("_lambda", lambdas); + } else { + objs.put("lambda", lambdas); + } } @Override @@ -351,7 +380,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co * When working with enums, we can't always assume a RefModel is a nullable type (where default(YourType) == null), * so this post processing runs through all models to find RefModel'd enums. Then, it runs through all vars and modifies * those vars referencing RefModel'd enums to work the same as inlined enums rather than as objects. - * @param models + * @param models processed models to be further processed for enum references */ @SuppressWarnings({ "unchecked" }) private void postProcessEnumRefs(final Map models) { @@ -750,8 +779,8 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co /** * 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..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 @@ -2,22 +2,19 @@ package io.swagger.codegen.languages; import com.google.common.collect.ImmutableMap; import com.samskivert.mustache.Mustache; -import com.samskivert.mustache.Template; -import io.swagger.codegen.*; - -import java.io.File; -import java.io.IOException; -import java.io.Writer; -import java.util.*; - -import io.swagger.codegen.mustache.IndentedLambda; -import io.swagger.codegen.mustache.LowercaseLambda; -import io.swagger.codegen.mustache.TitlecaseLambda; -import io.swagger.codegen.mustache.UppercaseLambda; -import org.apache.commons.lang3.StringUtils; +import io.swagger.codegen.CliOption; +import io.swagger.codegen.CodegenConstants; +import io.swagger.codegen.CodegenType; +import io.swagger.codegen.SupportingFile; +import io.swagger.codegen.mustache.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.File; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + public class KotlinServerCodegen extends AbstractKotlinCodegen { public static final String DEFAULT_LIBRARY = Constants.KTOR; @@ -191,9 +188,10 @@ public class KotlinServerCodegen extends AbstractKotlinCodegen { private void addMustacheLambdas(Map objs) { Map lambdas = new ImmutableMap.Builder() - .put("lowercase", new LowercaseLambda()) + .put("lowercase", new LowercaseLambda().generator(this)) .put("uppercase", new UppercaseLambda()) .put("titlecase", new TitlecaseLambda()) + .put("camelcase", new CamelCaseLambda().generator(this)) .put("indented", new IndentedLambda()) .put("indented_8", new IndentedLambda(8, " ")) .put("indented_12", new IndentedLambda(12, " ")) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/CamelCaseLambda.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/CamelCaseLambda.java new file mode 100644 index 00000000000..df677ea6fce --- /dev/null +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/CamelCaseLambda.java @@ -0,0 +1,63 @@ +package io.swagger.codegen.mustache; + +import com.google.common.base.CaseFormat; +import com.samskivert.mustache.Mustache; +import com.samskivert.mustache.Template; +import io.swagger.codegen.CodegenConfig; +import io.swagger.codegen.DefaultCodegen; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.text.WordUtils; + +import java.io.IOException; +import java.io.Writer; + +/** + * Converts text in a fragment to camelCase. + * + * Register: + *
+ * additionalProperties.put("camelcase", new CamelCaseLambda());
+ * 
+ * + * Use: + *
+ * {{#camelcase}}{{name}}{{/camelcase}}
+ * 
+ */ +public class CamelCaseLambda implements Mustache.Lambda { + private CodegenConfig generator = null; + private Boolean escapeParam = false; + + public CamelCaseLambda() { + + } + + public CamelCaseLambda generator(final CodegenConfig generator) { + this.generator = generator; + return this; + } + + public CamelCaseLambda escapeAsParamName(final Boolean escape) { + this.escapeParam = escape; + return this; + } + + @Override + public void execute(Template.Fragment fragment, Writer writer) throws IOException { + String text = DefaultCodegen.camelize(fragment.execute(), true); + if (generator != null) { + text = generator.sanitizeName(text); + if (generator.reservedWords().contains(text)) { + // Escaping must be done *after* camelize, because generators may escape using characters removed by camelize function. + text = generator.escapeReservedWord(text); + } + + if (escapeParam) { + // NOTE: many generators call escapeReservedWord in toParamName, but we can't assume that's always the case. + // Here, we'll have to accept that we may be duplicating some work. + text = generator.toParamName(text); + } + } + writer.write(text); + } +} diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/LowercaseLambda.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/mustache/LowercaseLambda.java index 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 @@ package io.swagger.codegen.mustache; 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 @@ import java.io.Writer; * */ 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 d0e75fd178c..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}} {{name}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{name}}{{#hasMore}}, {{/hasMore}}{{/parentVars}}){{/parent}} + public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{#hasMore}}, {{/hasMore}}{{/parentVars}}){{/parent}} { {{#vars}} {{^isInherited}} {{^isReadOnly}} {{#required}} - // to ensure "{{name}}" is required (not null) - if ({{name}} == null) + // to ensure "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" is required (not null) + if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null) { - throw new InvalidDataException("{{name}} is a required property for {{classname}} and cannot be null"); + throw new InvalidDataException("{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} is a required property for {{classname}} and cannot be null"); } else { - this.{{name}} = {{name}}; + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; } {{/required}} {{/isReadOnly}} @@ -78,18 +78,18 @@ {{^isInherited}} {{^isReadOnly}} {{^required}} - {{#defaultValue}}// use default value if no "{{name}}" provided - if ({{name}} == null) + {{#defaultValue}}// use default value if no "{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}" provided + if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null) { this.{{name}} = {{{defaultValue}}}; } else { - this.{{name}} = {{name}}; + this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; } {{/defaultValue}} {{^defaultValue}} -this.{{name}} = {{name}}; +this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}; {{/defaultValue}} {{/required}} {{/isReadOnly}} diff --git a/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/CamelCaseLambdaTest.java b/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/CamelCaseLambdaTest.java new file mode 100644 index 00000000000..98300bf0168 --- /dev/null +++ b/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/CamelCaseLambdaTest.java @@ -0,0 +1,73 @@ +package io.swagger.codegen.mustache; + +import io.swagger.codegen.CodegenConfig; +import io.swagger.codegen.languages.CSharpClientCodegen; +import io.swagger.codegen.languages.ScalaClientCodegen; +import org.testng.annotations.Factory; +import org.testng.annotations.Test; + +import static org.testng.Assert.*; + +public class CamelCaseLambdaTest extends MustacheTestBase { + private final String input; + private final String expected; + private Boolean escapeAsParamName = false; + + private CodegenConfig generator = null; + + public CamelCaseLambdaTest(String input, String expected) { + this.input = input; + this.expected = expected; + } + + public CamelCaseLambdaTest generator(CodegenConfig generator) { + this.generator = generator; + return this; + } + + public CamelCaseLambdaTest escapeAsParamName(Boolean setting) { + this.escapeAsParamName = setting; + return this; + } + + @Test(description = "camelCase expected inputs") + public void testExecute() throws Exception { + // Arrange + String template = "{{#camelcase}}{{value}}{{/camelcase}}"; + Object inputCtx = context( + "camelcase", new CamelCaseLambda().generator(this.generator).escapeAsParamName(this.escapeAsParamName), + "value", this.input + ); + + // Act + String actual = compile(template, inputCtx); + + + // Assert + assertEquals(actual, this.expected); + } + + @Factory + public static Object[] factoryMethod() { + return new Object[] { + new CamelCaseLambdaTest("lowercase input", "lowercase input"), + + // NOTE: DefaultCodegen.camelize(string, true) only results in first character of first word being lowercased. + // Keeping this behavior as it will match whatever is expected by existing codegen implementations. + new CamelCaseLambdaTest("UPPERCASE INPUT", "uPPERCASE INPUT"), + new CamelCaseLambdaTest("inputText", "inputText"), + new CamelCaseLambdaTest("input_text", "inputText"), + + // TODO: This result for INPUT_TEXT may be unexpected, but is the result of DefaultCodegen.camelize. + // CamelCaseLambda can be extended to accept a method reference after move to Java 8. + new CamelCaseLambdaTest("INPUT_TEXT", "iNPUTTEXT"), + new CamelCaseLambdaTest("input-text", "inputText"), + new CamelCaseLambdaTest("input-text input-text input-text input-text input-text", "inputText inputText inputText inputText inputText"), + // C# codegen at time of writing this test escapes using a character that would be removed by camelize function. + new CamelCaseLambdaTest("class", "_class").generator(new CSharpClientCodegen()), + new CamelCaseLambdaTest("123List", "_123List").generator(new CSharpClientCodegen()).escapeAsParamName(true), + // Scala codegen is only one at time of writing this test that uses a Mustache.Escaper + new CamelCaseLambdaTest("class", "`class`").generator(new ScalaClientCodegen()) + }; + } +} \ No newline at end of file diff --git a/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/LowercaseLambdaTest.java b/modules/swagger-codegen/src/test/java/io/swagger/codegen/mustache/LowercaseLambdaTest.java index 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 class LowercaseLambdaTest extends MustacheTestBase { 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 cbff1a670c7..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,12 +38,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// First. - /// Days. - public MyClassWithInvalidRequiredEnumUsageOnRef(bool? First = default(bool?), WeekDays? Days = default(WeekDays?)) + /// first. + /// days. + public MyClassWithInvalidRequiredEnumUsageOnRef(bool? first = default(bool?), WeekDays? days = default(WeekDays?)) { - this.First = First; - this.Days = Days; + this.First = first; + this.Days = days; } /// diff --git a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalEnum.cs b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalEnum.cs index a514a1b329f..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,14 +38,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Quarantine. - /// Grayware. - /// Days. - public MyClassWithOptionalEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), WeekDays? Days = default(WeekDays?)) + /// quarantine. + /// grayware. + /// days. + public MyClassWithOptionalEnum(bool? quarantine = default(bool?), bool? grayware = default(bool?), WeekDays? days = default(WeekDays?)) { - this.Quarantine = Quarantine; - this.Grayware = Grayware; - this.Days = Days; + this.Quarantine = quarantine; + this.Grayware = grayware; + this.Days = days; } /// diff --git a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalInlineEnum.cs b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithOptionalInlineEnum.cs index 66ce618e981..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,14 +88,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Quarantine. - /// Grayware. - /// Days. - public MyClassWithOptionalInlineEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), DaysEnum? Days = default(DaysEnum?)) + /// quarantine. + /// grayware. + /// days. + public MyClassWithOptionalInlineEnum(bool? quarantine = default(bool?), bool? grayware = default(bool?), DaysEnum? days = default(DaysEnum?)) { - this.Quarantine = Quarantine; - this.Grayware = Grayware; - this.Days = Days; + this.Quarantine = quarantine; + this.Grayware = grayware; + this.Days = days; } /// diff --git a/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithRequiredInlineEnum.cs b/modules/swagger-codegen/src/test/resources/integrationtests/csharp/general/enum-support-expected/src/IO.Swagger/Model/MyClassWithRequiredInlineEnum.cs index dcb3707584a..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,22 +93,22 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Quarantine. - /// Grayware. - /// Days (required). - public MyClassWithRequiredInlineEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), DaysEnum Days = default(DaysEnum)) + /// quarantine. + /// grayware. + /// days (required). + public MyClassWithRequiredInlineEnum(bool? quarantine = default(bool?), bool? grayware = default(bool?), DaysEnum days = default(DaysEnum)) { - // to ensure "Days" is required (not null) - if (Days == null) + // to ensure "days" is required (not null) + if (days == null) { - throw new InvalidDataException("Days is a required property for MyClassWithRequiredInlineEnum and cannot be null"); + throw new InvalidDataException("days is a required property for MyClassWithRequiredInlineEnum and cannot be null"); } else { - this.Days = Days; + this.Days = days; } - this.Quarantine = Quarantine; - this.Grayware = Grayware; + this.Quarantine = quarantine; + this.Grayware = grayware; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/docs/ModelReturn.md b/samples/client/petstore/csharp/SwaggerClient/docs/ModelReturn.md deleted file mode 100644 index 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 @@ namespace IO.Swagger.Test /// - /// 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 @@ namespace IO.Swagger.Test // 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 @@ namespace IO.Swagger.Test // 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 @@ namespace IO.Swagger.Test /// - /// 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/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index c11ae7e72f4..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,12 +33,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs index 9b44060fb85..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,27 +42,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs index e4e7048711c..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index 24f51e9010e..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index 44513c21762..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs index d6d3917a89d..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs index 78af1207503..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,20 +33,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs index b012af5de70..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,10 +38,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs index af12c8c3b39..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,12 +33,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs index cd82cd31dec..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 @@ namespace IO.Swagger.Model /// /// 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 f92b01a5bfb..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,10 +38,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs index 7b5b206889f..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,12 +84,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs index df4ebc66c81..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,16 +118,16 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs index 4a0c3f97383..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,66 +38,66 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs index e68482ececc..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,12 +59,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index ff71e5b3d5b..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs index ece573ce162..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 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs index 117463e0bf4..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 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// __Client. - public ModelClient(string __Client = default(string)) + /// _client. + public ModelClient(string _client = default(string)) { - this.__Client = __Client; + this.__Client = _client; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs deleted file mode 100644 index 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; - } - } - -} 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..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,20 +38,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs index 27f1522e63d..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs index c8bddf3c33e..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,27 +66,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs index 5b14554b643..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs index c218ecd4840..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,36 +71,36 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs index af7030e59a3..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Return.cs index 39b03628206..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 @@ namespace IO.Swagger.Model /// /// 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 177e401ec96..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs index 4ad09373c43..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,12 +33,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs index 773882600b3..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,24 +33,24 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index 271cfba5d5e..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,12 +33,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Animal.cs index f1ebc0d0216..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,27 +42,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ApiResponse.cs index e8d0570cb7e..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index 4badc3bd44c..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index 41b7d2af821..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ArrayTest.cs index d58f2cc51b3..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Capitalization.cs index d48b618b27a..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,20 +33,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Cat.cs index 567c97f7a71..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,10 +38,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Category.cs index 6b98cae97bd..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,12 +33,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ClassModel.cs index 54842287cf6..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 @@ namespace IO.Swagger.Model /// /// 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 f33616ffd82..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,10 +38,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumArrays.cs index eec89794289..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,12 +84,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/EnumTest.cs index 9e4f6a56b62..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,16 +118,16 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/FormatTest.cs index 02f96e6c5be..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,66 +38,66 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MapTest.cs index 3b6655b284b..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,12 +59,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3d4b0ed66d2..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Model200Response.cs index d81f20e5757..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 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ModelClient.cs index db5426bfb05..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 @@ namespace IO.Swagger.Model /// /// 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 4e9e284aea6..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,20 +38,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/NumberOnly.cs index d238193aa8f..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Order.cs index a800f2e11f4..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,27 +66,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/OuterComposite.cs index f29a8e55202..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Pet.cs index 12c1937f9bf..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,36 +71,36 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/ReadOnlyFirst.cs index cf8176592f6..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Return.cs index 0743d0ffa75..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 @@ namespace IO.Swagger.Model /// /// 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 b103d5e6144..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/Tag.cs index d21e67778dd..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,12 +33,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientNet35/src/IO.Swagger/Model/User.cs index 584ec8c310d..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,24 +33,24 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index c11ae7e72f4..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,12 +33,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Animal.cs index 9b44060fb85..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,27 +42,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ApiResponse.cs index e4e7048711c..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index 24f51e9010e..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index 44513c21762..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ArrayTest.cs index d6d3917a89d..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Capitalization.cs index 78af1207503..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,20 +33,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Cat.cs index b012af5de70..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,10 +38,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Category.cs index af12c8c3b39..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,12 +33,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ClassModel.cs index cd82cd31dec..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 @@ namespace IO.Swagger.Model /// /// 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 f92b01a5bfb..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,10 +38,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumArrays.cs index 7b5b206889f..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,12 +84,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/EnumTest.cs index df4ebc66c81..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,16 +118,16 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/FormatTest.cs index 4a0c3f97383..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,66 +38,66 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MapTest.cs index e68482ececc..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,12 +59,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index ff71e5b3d5b..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Model200Response.cs index ece573ce162..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 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ModelClient.cs index 117463e0bf4..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 @@ namespace IO.Swagger.Model /// /// 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 31c8e25bcd1..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,20 +38,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/NumberOnly.cs index 27f1522e63d..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Order.cs index c8bddf3c33e..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,27 +66,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/OuterComposite.cs index 5b14554b643..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,14 +33,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Pet.cs index c218ecd4840..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,36 +71,36 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/ReadOnlyFirst.cs index af7030e59a3..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Return.cs index 39b03628206..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 @@ namespace IO.Swagger.Model /// /// 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 177e401ec96..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,10 +33,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/Tag.cs index 4ad09373c43..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,12 +33,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientNet40/src/IO.Swagger/Model/User.cs index 773882600b3..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,24 +33,24 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index 51b5d86bf47..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,12 +31,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs index b0b642e09ff..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,27 +40,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs index 5e03eeda044..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,14 +31,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index f2202240e70..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,10 +31,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index ab2deba2484..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,10 +31,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs index 992dc11e15b..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,14 +31,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs index 69794a2be1a..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,20 +31,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs index 555746a83fe..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,10 +36,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs index 1d553e47109..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,12 +31,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs index 67e9e204d0a..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 @@ namespace IO.Swagger.Model /// /// 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 672511560d0..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,10 +36,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs index 5391fb4a8e2..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,12 +82,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs index d734025d483..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,16 +116,16 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs index 8507759542f..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,66 +36,66 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs index 7563ad74afa..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,12 +57,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 15ac5cd269c..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,14 +31,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs index a0ea98056e6..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 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs index cd1aee27b4c..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 @@ namespace IO.Swagger.Model /// /// 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 ac996069e08..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,20 +36,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs index 3c3e83b2262..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,10 +31,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs index 3d2c54c6556..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,27 +64,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs index 46fbc5e21b2..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,14 +31,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs index 3f1ae834393..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,36 +69,36 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs index 2565a394a73..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,10 +31,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Return.cs index b11bad752f9..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 @@ namespace IO.Swagger.Model /// /// 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 865845c329a..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,10 +31,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs index 45aa6818bd1..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,12 +31,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs index 30c411ed952..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,24 +31,24 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index 39b40dad938..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,12 +36,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapProperty. - /// MapOfMapProperty. - public AdditionalPropertiesClass(Dictionary MapProperty = default(Dictionary), Dictionary> MapOfMapProperty = default(Dictionary>)) + /// mapProperty. + /// mapOfMapProperty. + public AdditionalPropertiesClass(Dictionary mapProperty = default(Dictionary), Dictionary> mapOfMapProperty = default(Dictionary>)) { - this.MapProperty = MapProperty; - this.MapOfMapProperty = MapOfMapProperty; + this.MapProperty = mapProperty; + this.MapOfMapProperty = mapOfMapProperty; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs index e99145ac092..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,27 +45,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ClassName (required). - /// Color (default to "red"). - public Animal(string ClassName = default(string), string Color = "red") + /// className (required). + /// color (default to "red"). + public Animal(string className = default(string), string color = "red") { - // to ensure "ClassName" is required (not null) - if (ClassName == null) + // to ensure "className" is required (not null) + if (className == null) { - throw new InvalidDataException("ClassName is a required property for Animal and cannot be null"); + throw new InvalidDataException("className is a required property for Animal and cannot be null"); } else { - this.ClassName = ClassName; + this.ClassName = className; } - // use default value if no "Color" provided - if (Color == null) + // use default value if no "color" provided + if (color == null) { this.Color = "red"; } else { - this.Color = Color; + this.Color = color; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs index 9e6f328dec7..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,14 +36,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Code. - /// Type. - /// Message. - public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string)) + /// code. + /// type. + /// message. + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { - this.Code = Code; - this.Type = Type; - this.Message = Message; + this.Code = code; + this.Type = type; + this.Message = message; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index b576f5e980c..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,10 +36,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> ArrayArrayNumber = default(List>)) + /// arrayArrayNumber. + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { - this.ArrayArrayNumber = ArrayArrayNumber; + this.ArrayArrayNumber = arrayArrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index f6dfc3d3c3e..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,10 +36,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayNumber. - public ArrayOfNumberOnly(List ArrayNumber = default(List)) + /// arrayNumber. + public ArrayOfNumberOnly(List arrayNumber = default(List)) { - this.ArrayNumber = ArrayNumber; + this.ArrayNumber = arrayNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs index 4cc97026da2..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,14 +36,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// ArrayOfString. - /// ArrayArrayOfInteger. - /// ArrayArrayOfModel. - public ArrayTest(List ArrayOfString = default(List), List> ArrayArrayOfInteger = default(List>), List> ArrayArrayOfModel = default(List>)) + /// arrayOfString. + /// arrayArrayOfInteger. + /// arrayArrayOfModel. + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { - this.ArrayOfString = ArrayOfString; - this.ArrayArrayOfInteger = ArrayArrayOfInteger; - this.ArrayArrayOfModel = ArrayArrayOfModel; + this.ArrayOfString = arrayOfString; + this.ArrayArrayOfInteger = arrayArrayOfInteger; + this.ArrayArrayOfModel = arrayArrayOfModel; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs index 09b2b86102d..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,20 +36,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SmallCamel. - /// CapitalCamel. - /// SmallSnake. - /// CapitalSnake. - /// SCAETHFlowPoints. - /// Name of the pet . - public Capitalization(string SmallCamel = default(string), string CapitalCamel = default(string), string SmallSnake = default(string), string CapitalSnake = default(string), string SCAETHFlowPoints = default(string), string ATT_NAME = default(string)) + /// smallCamel. + /// capitalCamel. + /// smallSnake. + /// capitalSnake. + /// sCAETHFlowPoints. + /// Name of the pet . + public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string)) { - this.SmallCamel = SmallCamel; - this.CapitalCamel = CapitalCamel; - this.SmallSnake = SmallSnake; - this.CapitalSnake = CapitalSnake; - this.SCAETHFlowPoints = SCAETHFlowPoints; - this.ATT_NAME = ATT_NAME; + this.SmallCamel = smallCamel; + this.CapitalCamel = capitalCamel; + this.SmallSnake = smallSnake; + this.CapitalSnake = capitalSnake; + this.SCAETHFlowPoints = sCAETHFlowPoints; + this.ATT_NAME = aTTNAME; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs index ec8d4fb6030..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,10 +41,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Declawed. - public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color) + /// declawed. + public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color) { - this.Declawed = Declawed; + this.Declawed = declawed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs index 87b93ebb81c..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,12 +36,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Category(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Category(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs index f52476f7b29..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 @@ namespace IO.Swagger.Model /// /// 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 12f06f9ae53..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,10 +41,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Breed. - public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color) + /// breed. + public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color) { - this.Breed = Breed; + this.Breed = breed; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs index 3f408068bad..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,12 +87,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustSymbol. - /// ArrayEnum. - public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List ArrayEnum = default(List)) + /// justSymbol. + /// arrayEnum. + public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List arrayEnum = default(List)) { - this.JustSymbol = JustSymbol; - this.ArrayEnum = ArrayEnum; + this.JustSymbol = justSymbol; + this.ArrayEnum = arrayEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs index 846dd43ab51..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,16 +121,16 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// EnumString. - /// EnumInteger. - /// EnumNumber. - /// OuterEnum. - public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?)) + /// enumString. + /// enumInteger. + /// enumNumber. + /// outerEnum. + public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?)) { - this.EnumString = EnumString; - this.EnumInteger = EnumInteger; - this.EnumNumber = EnumNumber; - this.OuterEnum = OuterEnum; + this.EnumString = enumString; + this.EnumInteger = enumInteger; + this.EnumNumber = enumNumber; + this.OuterEnum = outerEnum; } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs index c92aed7f349..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,66 +41,66 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Integer. - /// Int32. - /// Int64. - /// Number (required). - /// Float. - /// Double. - /// String. - /// Byte (required). - /// Binary. - /// Date (required). - /// DateTime. - /// Uuid. - /// Password (required). - public FormatTest(int? Integer = default(int?), int? Int32 = default(int?), long? Int64 = default(long?), decimal? Number = default(decimal?), float? Float = default(float?), double? Double = default(double?), string String = default(string), byte[] Byte = default(byte[]), byte[] Binary = default(byte[]), DateTime? Date = default(DateTime?), DateTime? DateTime = default(DateTime?), Guid? Uuid = default(Guid?), string Password = default(string)) + /// integer. + /// int32. + /// int64. + /// number (required). + /// _float. + /// _double. + /// _string. + /// _byte (required). + /// binary. + /// date (required). + /// dateTime. + /// uuid. + /// password (required). + public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) { - // to ensure "Number" is required (not null) - if (Number == null) + // to ensure "number" is required (not null) + if (number == null) { - throw new InvalidDataException("Number is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("number is a required property for FormatTest and cannot be null"); } else { - this.Number = Number; + this.Number = number; } - // to ensure "Byte" is required (not null) - if (Byte == null) + // to ensure "_byte" is required (not null) + if (_byte == null) { - throw new InvalidDataException("Byte is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("_byte is a required property for FormatTest and cannot be null"); } else { - this.Byte = Byte; + this.Byte = _byte; } - // to ensure "Date" is required (not null) - if (Date == null) + // to ensure "date" is required (not null) + if (date == null) { - throw new InvalidDataException("Date is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("date is a required property for FormatTest and cannot be null"); } else { - this.Date = Date; + this.Date = date; } - // to ensure "Password" is required (not null) - if (Password == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new InvalidDataException("Password is a required property for FormatTest and cannot be null"); + throw new InvalidDataException("password is a required property for FormatTest and cannot be null"); } else { - this.Password = Password; + this.Password = password; } - this.Integer = Integer; - this.Int32 = Int32; - this.Int64 = Int64; - this.Float = Float; - this.Double = Double; - this.String = String; - this.Binary = Binary; - this.DateTime = DateTime; - this.Uuid = Uuid; + this.Integer = integer; + this.Int32 = int32; + this.Int64 = int64; + this.Float = _float; + this.Double = _double; + this.String = _string; + this.Binary = binary; + this.DateTime = dateTime; + this.Uuid = uuid; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs index 7ab7098dc8f..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,12 +62,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MapMapOfString. - /// MapOfEnumString. - public MapTest(Dictionary> MapMapOfString = default(Dictionary>), Dictionary MapOfEnumString = default(Dictionary)) + /// mapMapOfString. + /// mapOfEnumString. + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary)) { - this.MapMapOfString = MapMapOfString; - this.MapOfEnumString = MapOfEnumString; + this.MapMapOfString = mapMapOfString; + this.MapOfEnumString = mapOfEnumString; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index d69f7f54a7a..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,14 +36,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Uuid. - /// DateTime. - /// Map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary Map = default(Dictionary)) + /// uuid. + /// dateTime. + /// map. + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { - this.Uuid = Uuid; - this.DateTime = DateTime; - this.Map = Map; + this.Uuid = uuid; + this.DateTime = dateTime; + this.Map = map; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs index 5503837c064..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 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Name. - /// Class. - public Model200Response(int? Name = default(int?), string Class = default(string)) + /// name. + /// _class. + public Model200Response(int? name = default(int?), string _class = default(string)) { - this.Name = Name; - this.Class = Class; + this.Name = name; + this.Class = _class; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs index 1fe5ee1c1be..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 @@ namespace IO.Swagger.Model /// /// 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 ce4fa8672d9..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,20 +41,20 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// _Name (required). - /// Property. - public Name(int? _Name = default(int?), string Property = default(string)) + /// name (required). + /// property. + public Name(int? name = default(int?), string property = default(string)) { - // to ensure "_Name" is required (not null) - if (_Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("_Name is a required property for Name and cannot be null"); + throw new InvalidDataException("name is a required property for Name and cannot be null"); } else { - this._Name = _Name; + this._Name = name; } - this.Property = Property; + this.Property = property; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs index ce574d1945d..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,10 +36,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// JustNumber. - public NumberOnly(decimal? JustNumber = default(decimal?)) + /// justNumber. + public NumberOnly(decimal? justNumber = default(decimal?)) { - this.JustNumber = JustNumber; + this.JustNumber = justNumber; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs index f7da8aa6862..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,27 +69,27 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// PetId. - /// Quantity. - /// ShipDate. - /// Order Status. - /// Complete (default to false). - public Order(long? Id = default(long?), long? PetId = default(long?), int? Quantity = default(int?), DateTime? ShipDate = default(DateTime?), StatusEnum? Status = default(StatusEnum?), bool? Complete = false) + /// id. + /// petId. + /// quantity. + /// shipDate. + /// Order Status. + /// complete (default to false). + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { - this.Id = Id; - this.PetId = PetId; - this.Quantity = Quantity; - this.ShipDate = ShipDate; - this.Status = Status; - // use default value if no "Complete" provided - if (Complete == null) + this.Id = id; + this.PetId = petId; + this.Quantity = quantity; + this.ShipDate = shipDate; + this.Status = status; + // use default value if no "complete" provided + if (complete == null) { this.Complete = false; } else { - this.Complete = Complete; + this.Complete = complete; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs index bba9945febb..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,14 +36,14 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// MyNumber. - /// MyString. - /// MyBoolean. - public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean)) + /// myNumber. + /// myString. + /// myBoolean. + public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean)) { - this.MyNumber = MyNumber; - this.MyString = MyString; - this.MyBoolean = MyBoolean; + this.MyNumber = myNumber; + this.MyString = myString; + this.MyBoolean = myBoolean; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs index f44ebee2ef8..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,36 +74,36 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Category. - /// Name (required). - /// PhotoUrls (required). - /// Tags. - /// pet status in the store. - public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List PhotoUrls = default(List), List Tags = default(List), StatusEnum? Status = default(StatusEnum?)) + /// id. + /// category. + /// name (required). + /// photoUrls (required). + /// tags. + /// pet status in the store. + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { - // to ensure "Name" is required (not null) - if (Name == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("Name is a required property for Pet and cannot be null"); + throw new InvalidDataException("name is a required property for Pet and cannot be null"); } else { - this.Name = Name; + this.Name = name; } - // to ensure "PhotoUrls" is required (not null) - if (PhotoUrls == null) + // to ensure "photoUrls" is required (not null) + if (photoUrls == null) { - throw new InvalidDataException("PhotoUrls is a required property for Pet and cannot be null"); + throw new InvalidDataException("photoUrls is a required property for Pet and cannot be null"); } else { - this.PhotoUrls = PhotoUrls; + this.PhotoUrls = photoUrls; } - this.Id = Id; - this.Category = Category; - this.Tags = Tags; - this.Status = Status; + this.Id = id; + this.Category = category; + this.Tags = tags; + this.Status = status; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs index f65a429bb07..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,10 +36,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Baz. - public ReadOnlyFirst(string Baz = default(string)) + /// baz. + public ReadOnlyFirst(string baz = default(string)) { - this.Baz = Baz; + this.Baz = baz; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Return.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Return.cs index c8b264faba1..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 @@ namespace IO.Swagger.Model /// /// 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 b7756fa21bd..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,10 +36,10 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// SpecialPropertyName. - public SpecialModelName(long? SpecialPropertyName = default(long?)) + /// specialPropertyName. + public SpecialModelName(long? specialPropertyName = default(long?)) { - this.SpecialPropertyName = SpecialPropertyName; + this.SpecialPropertyName = specialPropertyName; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs index f47899d1130..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,12 +36,12 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Name. - public Tag(long? Id = default(long?), string Name = default(string)) + /// id. + /// name. + public Tag(long? id = default(long?), string name = default(string)) { - this.Id = Id; - this.Name = Name; + this.Id = id; + this.Name = name; } /// diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs index f815c1c0803..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,24 +36,24 @@ namespace IO.Swagger.Model /// /// Initializes a new instance of the class. /// - /// Id. - /// Username. - /// FirstName. - /// LastName. - /// Email. - /// Password. - /// Phone. - /// User Status. - public User(long? Id = default(long?), string Username = default(string), string FirstName = default(string), string LastName = default(string), string Email = default(string), string Password = default(string), string Phone = default(string), int? UserStatus = default(int?)) + /// id. + /// username. + /// firstName. + /// lastName. + /// email. + /// password. + /// phone. + /// User Status. + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { - this.Id = Id; - this.Username = Username; - this.FirstName = FirstName; - this.LastName = LastName; - this.Email = Email; - this.Password = Password; - this.Phone = Phone; - this.UserStatus = UserStatus; + this.Id = id; + this.Username = username; + this.FirstName = firstName; + this.LastName = lastName; + this.Email = email; + this.Password = password; + this.Phone = phone; + this.UserStatus = userStatus; } ///