forked from loafle/openapi-generator-original
[csharp] ctor params should always be camelCase (#7519)
* [csharp] ctor params should always be camelCase After PR #6305, var names defaulted to PascalCase results in constructor arguments also being PacalCase. Model properties and constructor arguments have no reason to be the same case, and in fact may cause issues (`name = name` will result in a compilation error). This commit forces all constructor params in models to lowerCase. This is a necessary change, for instance, if client SDK consumers assign using named args: var a = new Model(first = "", second = "") The PacalCase default and update to constructor arg casing will break existing consumers of the client. See #7070 for more details and discussion. * [csharp] Regenerate samples * [csharp] Remove client models generated from a different spec. * [csharp] Escape reserved words on camelcase/lowercase lambdas * [csharp] Regenerate samples
This commit is contained in:
parent
1139f3f053
commit
0e34bcf4e4
@ -216,4 +216,6 @@ public interface CodegenConfig {
|
||||
|
||||
String toGetter(String name);
|
||||
|
||||
String sanitizeName(String name);
|
||||
|
||||
}
|
||||
|
@ -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<String, Object> objs) {
|
||||
|
||||
Map<String, Mustache.Lambda> lambdas = new ImmutableMap.Builder<String, Mustache.Lambda>()
|
||||
.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<String, Object> 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
|
||||
|
@ -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<String, Object> objs) {
|
||||
|
||||
Map<String, Mustache.Lambda> lambdas = new ImmutableMap.Builder<String, Mustache.Lambda>()
|
||||
.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, " "))
|
||||
|
@ -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:
|
||||
* <pre>
|
||||
* additionalProperties.put("camelcase", new CamelCaseLambda());
|
||||
* </pre>
|
||||
*
|
||||
* Use:
|
||||
* <pre>
|
||||
* {{#camelcase}}{{name}}{{/camelcase}}
|
||||
* </pre>
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
@ -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;
|
||||
* </pre>
|
||||
*/
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -49,26 +49,26 @@
|
||||
/// </summary>
|
||||
{{#vars}}
|
||||
{{^isReadOnly}}
|
||||
/// <param name="{{name}}">{{#description}}{{description}}{{/description}}{{^description}}{{name}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{defaultValue}}){{/defaultValue}}.</param>
|
||||
/// <param name="{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}">{{#description}}{{description}}{{/description}}{{^description}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{/description}}{{#required}} (required){{/required}}{{#defaultValue}} (default to {{defaultValue}}){{/defaultValue}}.</param>
|
||||
{{/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}}
|
||||
|
@ -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())
|
||||
};
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -38,12 +38,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MyClassWithInvalidRequiredEnumUsageOnRef" /> class.
|
||||
/// </summary>
|
||||
/// <param name="First">First.</param>
|
||||
/// <param name="Days">Days.</param>
|
||||
public MyClassWithInvalidRequiredEnumUsageOnRef(bool? First = default(bool?), WeekDays? Days = default(WeekDays?))
|
||||
/// <param name="first">first.</param>
|
||||
/// <param name="days">days.</param>
|
||||
public MyClassWithInvalidRequiredEnumUsageOnRef(bool? first = default(bool?), WeekDays? days = default(WeekDays?))
|
||||
{
|
||||
this.First = First;
|
||||
this.Days = Days;
|
||||
this.First = first;
|
||||
this.Days = days;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -38,14 +38,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MyClassWithOptionalEnum" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Quarantine">Quarantine.</param>
|
||||
/// <param name="Grayware">Grayware.</param>
|
||||
/// <param name="Days">Days.</param>
|
||||
public MyClassWithOptionalEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), WeekDays? Days = default(WeekDays?))
|
||||
/// <param name="quarantine">quarantine.</param>
|
||||
/// <param name="grayware">grayware.</param>
|
||||
/// <param name="days">days.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -88,14 +88,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MyClassWithOptionalInlineEnum" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Quarantine">Quarantine.</param>
|
||||
/// <param name="Grayware">Grayware.</param>
|
||||
/// <param name="Days">Days.</param>
|
||||
public MyClassWithOptionalInlineEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), DaysEnum? Days = default(DaysEnum?))
|
||||
/// <param name="quarantine">quarantine.</param>
|
||||
/// <param name="grayware">grayware.</param>
|
||||
/// <param name="days">days.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -93,22 +93,22 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MyClassWithRequiredInlineEnum" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Quarantine">Quarantine.</param>
|
||||
/// <param name="Grayware">Grayware.</param>
|
||||
/// <param name="Days">Days (required).</param>
|
||||
public MyClassWithRequiredInlineEnum(bool? Quarantine = default(bool?), bool? Grayware = default(bool?), DaysEnum Days = default(DaysEnum))
|
||||
/// <param name="quarantine">quarantine.</param>
|
||||
/// <param name="grayware">grayware.</param>
|
||||
/// <param name="days">days (required).</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -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)
|
||||
|
@ -67,12 +67,12 @@ namespace IO.Swagger.Test
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_Class'
|
||||
/// Test the property 'Class'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _ClassTest()
|
||||
public void ClassTest()
|
||||
{
|
||||
// TODO unit test for the property '_Class'
|
||||
// TODO unit test for the property 'Class'
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -99,36 +99,36 @@ namespace IO.Swagger.Test
|
||||
// TODO unit test for the property 'Number'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property '_Float'
|
||||
/// Test the property 'Float'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _FloatTest()
|
||||
public void FloatTest()
|
||||
{
|
||||
// TODO unit test for the property '_Float'
|
||||
// TODO unit test for the property 'Float'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property '_Double'
|
||||
/// Test the property 'Double'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _DoubleTest()
|
||||
public void DoubleTest()
|
||||
{
|
||||
// TODO unit test for the property '_Double'
|
||||
// TODO unit test for the property 'Double'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property '_String'
|
||||
/// Test the property 'String'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _StringTest()
|
||||
public void StringTest()
|
||||
{
|
||||
// TODO unit test for the property '_String'
|
||||
// TODO unit test for the property 'String'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property '_Byte'
|
||||
/// Test the property 'Byte'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _ByteTest()
|
||||
public void ByteTest()
|
||||
{
|
||||
// TODO unit test for the property '_Byte'
|
||||
// TODO unit test for the property 'Byte'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Binary'
|
||||
|
@ -75,12 +75,12 @@ namespace IO.Swagger.Test
|
||||
// TODO unit test for the property 'Name'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property '_Class'
|
||||
/// Test the property 'Class'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _ClassTest()
|
||||
public void ClassTest()
|
||||
{
|
||||
// TODO unit test for the property '_Class'
|
||||
// TODO unit test for the property 'Class'
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -67,12 +67,12 @@ namespace IO.Swagger.Test
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_Client'
|
||||
/// Test the property '__Client'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _ClientTest()
|
||||
public void __ClientTest()
|
||||
{
|
||||
// TODO unit test for the property '_Client'
|
||||
// TODO unit test for the property '__Client'
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Class for testing ModelReturn
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This file is automatically generated by Swagger Codegen.
|
||||
/// Please update the test case below to test the model.
|
||||
/// </remarks>
|
||||
[TestFixture]
|
||||
public class ModelReturnTests
|
||||
{
|
||||
// TODO uncomment below to declare an instance variable for ModelReturn
|
||||
//private ModelReturn instance;
|
||||
|
||||
/// <summary>
|
||||
/// Setup before each test
|
||||
/// </summary>
|
||||
[SetUp]
|
||||
public void Init()
|
||||
{
|
||||
// TODO uncomment below to create an instance of ModelReturn
|
||||
//instance = new ModelReturn();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up after each test
|
||||
/// </summary>
|
||||
[TearDown]
|
||||
public void Cleanup()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test an instance of ModelReturn
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void ModelReturnInstanceTest()
|
||||
{
|
||||
// TODO uncomment below to test "IsInstanceOfType" ModelReturn
|
||||
//Assert.IsInstanceOfType<ModelReturn> (instance, "variable 'instance' is a ModelReturn");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_Return'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _ReturnTest()
|
||||
{
|
||||
// TODO unit test for the property '_Return'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
|
||||
/// </summary>
|
||||
/// <param name="MapProperty">MapProperty.</param>
|
||||
/// <param name="MapOfMapProperty">MapOfMapProperty.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> MapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> MapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||
/// <param name="mapProperty">mapProperty.</param>
|
||||
/// <param name="mapOfMapProperty">mapOfMapProperty.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> mapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||
{
|
||||
this.MapProperty = MapProperty;
|
||||
this.MapOfMapProperty = MapOfMapProperty;
|
||||
this.MapProperty = mapProperty;
|
||||
this.MapOfMapProperty = mapOfMapProperty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -42,27 +42,27 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Animal" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ClassName">ClassName (required).</param>
|
||||
/// <param name="Color">Color (default to "red").</param>
|
||||
public Animal(string ClassName = default(string), string Color = "red")
|
||||
/// <param name="className">className (required).</param>
|
||||
/// <param name="color">color (default to "red").</param>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ApiResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Code">Code.</param>
|
||||
/// <param name="Type">Type.</param>
|
||||
/// <param name="Message">Message.</param>
|
||||
public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string))
|
||||
/// <param name="code">code.</param>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="message">message.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayArrayNumber">ArrayArrayNumber.</param>
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> ArrayArrayNumber = default(List<List<decimal?>>))
|
||||
/// <param name="arrayArrayNumber">arrayArrayNumber.</param>
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> arrayArrayNumber = default(List<List<decimal?>>))
|
||||
{
|
||||
this.ArrayArrayNumber = ArrayArrayNumber;
|
||||
this.ArrayArrayNumber = arrayArrayNumber;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayNumber">ArrayNumber.</param>
|
||||
public ArrayOfNumberOnly(List<decimal?> ArrayNumber = default(List<decimal?>))
|
||||
/// <param name="arrayNumber">arrayNumber.</param>
|
||||
public ArrayOfNumberOnly(List<decimal?> arrayNumber = default(List<decimal?>))
|
||||
{
|
||||
this.ArrayNumber = ArrayNumber;
|
||||
this.ArrayNumber = arrayNumber;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ArrayTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayOfString">ArrayOfString.</param>
|
||||
/// <param name="ArrayArrayOfInteger">ArrayArrayOfInteger.</param>
|
||||
/// <param name="ArrayArrayOfModel">ArrayArrayOfModel.</param>
|
||||
public ArrayTest(List<string> ArrayOfString = default(List<string>), List<List<long?>> ArrayArrayOfInteger = default(List<List<long?>>), List<List<ReadOnlyFirst>> ArrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
/// <param name="arrayOfString">arrayOfString.</param>
|
||||
/// <param name="arrayArrayOfInteger">arrayArrayOfInteger.</param>
|
||||
/// <param name="arrayArrayOfModel">arrayArrayOfModel.</param>
|
||||
public ArrayTest(List<string> arrayOfString = default(List<string>), List<List<long?>> arrayArrayOfInteger = default(List<List<long?>>), List<List<ReadOnlyFirst>> arrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
{
|
||||
this.ArrayOfString = ArrayOfString;
|
||||
this.ArrayArrayOfInteger = ArrayArrayOfInteger;
|
||||
this.ArrayArrayOfModel = ArrayArrayOfModel;
|
||||
this.ArrayOfString = arrayOfString;
|
||||
this.ArrayArrayOfInteger = arrayArrayOfInteger;
|
||||
this.ArrayArrayOfModel = arrayArrayOfModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,20 +33,20 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Capitalization" /> class.
|
||||
/// </summary>
|
||||
/// <param name="SmallCamel">SmallCamel.</param>
|
||||
/// <param name="CapitalCamel">CapitalCamel.</param>
|
||||
/// <param name="SmallSnake">SmallSnake.</param>
|
||||
/// <param name="CapitalSnake">CapitalSnake.</param>
|
||||
/// <param name="SCAETHFlowPoints">SCAETHFlowPoints.</param>
|
||||
/// <param name="ATT_NAME">Name of the pet .</param>
|
||||
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))
|
||||
/// <param name="smallCamel">smallCamel.</param>
|
||||
/// <param name="capitalCamel">capitalCamel.</param>
|
||||
/// <param name="smallSnake">smallSnake.</param>
|
||||
/// <param name="capitalSnake">capitalSnake.</param>
|
||||
/// <param name="sCAETHFlowPoints">sCAETHFlowPoints.</param>
|
||||
/// <param name="aTTNAME">Name of the pet .</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -38,10 +38,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Cat" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Declawed">Declawed.</param>
|
||||
public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color)
|
||||
/// <param name="declawed">declawed.</param>
|
||||
public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color)
|
||||
{
|
||||
this.Declawed = Declawed;
|
||||
this.Declawed = declawed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Category" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Name">Name.</param>
|
||||
public Category(long? Id = default(long?), string Name = default(string))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
public Category(long? id = default(long?), string name = default(string))
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Name = Name;
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClassModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Class">Class.</param>
|
||||
public ClassModel(string Class = default(string))
|
||||
/// <param name="_class">_class.</param>
|
||||
public ClassModel(string _class = default(string))
|
||||
{
|
||||
this.Class = Class;
|
||||
this.Class = _class;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -38,10 +38,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Dog" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Breed">Breed.</param>
|
||||
public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color)
|
||||
/// <param name="breed">breed.</param>
|
||||
public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
|
||||
{
|
||||
this.Breed = Breed;
|
||||
this.Breed = breed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -84,12 +84,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
|
||||
/// </summary>
|
||||
/// <param name="JustSymbol">JustSymbol.</param>
|
||||
/// <param name="ArrayEnum">ArrayEnum.</param>
|
||||
public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List<ArrayEnumEnum> ArrayEnum = default(List<ArrayEnumEnum>))
|
||||
/// <param name="justSymbol">justSymbol.</param>
|
||||
/// <param name="arrayEnum">arrayEnum.</param>
|
||||
public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List<ArrayEnumEnum> arrayEnum = default(List<ArrayEnumEnum>))
|
||||
{
|
||||
this.JustSymbol = JustSymbol;
|
||||
this.ArrayEnum = ArrayEnum;
|
||||
this.JustSymbol = justSymbol;
|
||||
this.ArrayEnum = arrayEnum;
|
||||
}
|
||||
|
||||
|
||||
|
@ -118,16 +118,16 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="EnumString">EnumString.</param>
|
||||
/// <param name="EnumInteger">EnumInteger.</param>
|
||||
/// <param name="EnumNumber">EnumNumber.</param>
|
||||
/// <param name="OuterEnum">OuterEnum.</param>
|
||||
public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?))
|
||||
/// <param name="enumString">enumString.</param>
|
||||
/// <param name="enumInteger">enumInteger.</param>
|
||||
/// <param name="enumNumber">enumNumber.</param>
|
||||
/// <param name="outerEnum">outerEnum.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -38,66 +38,66 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FormatTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Integer">Integer.</param>
|
||||
/// <param name="Int32">Int32.</param>
|
||||
/// <param name="Int64">Int64.</param>
|
||||
/// <param name="Number">Number (required).</param>
|
||||
/// <param name="Float">Float.</param>
|
||||
/// <param name="Double">Double.</param>
|
||||
/// <param name="String">String.</param>
|
||||
/// <param name="Byte">Byte (required).</param>
|
||||
/// <param name="Binary">Binary.</param>
|
||||
/// <param name="Date">Date (required).</param>
|
||||
/// <param name="DateTime">DateTime.</param>
|
||||
/// <param name="Uuid">Uuid.</param>
|
||||
/// <param name="Password">Password (required).</param>
|
||||
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))
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
/// <param name="_string">_string.</param>
|
||||
/// <param name="_byte">_byte (required).</param>
|
||||
/// <param name="binary">binary.</param>
|
||||
/// <param name="date">date (required).</param>
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="password">password (required).</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -59,12 +59,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MapTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="MapMapOfString">MapMapOfString.</param>
|
||||
/// <param name="MapOfEnumString">MapOfEnumString.</param>
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> MapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> MapOfEnumString = default(Dictionary<string, InnerEnum>))
|
||||
/// <param name="mapMapOfString">mapMapOfString.</param>
|
||||
/// <param name="mapOfEnumString">mapOfEnumString.</param>
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>))
|
||||
{
|
||||
this.MapMapOfString = MapMapOfString;
|
||||
this.MapOfEnumString = MapOfEnumString;
|
||||
this.MapMapOfString = mapMapOfString;
|
||||
this.MapOfEnumString = mapOfEnumString;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MixedPropertiesAndAdditionalPropertiesClass" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Uuid">Uuid.</param>
|
||||
/// <param name="DateTime">DateTime.</param>
|
||||
/// <param name="Map">Map.</param>
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary<string, Animal> Map = default(Dictionary<string, Animal>))
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
/// <param name="map">map.</param>
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary<string, Animal> map = default(Dictionary<string, Animal>))
|
||||
{
|
||||
this.Uuid = Uuid;
|
||||
this.DateTime = DateTime;
|
||||
this.Map = Map;
|
||||
this.Uuid = uuid;
|
||||
this.DateTime = dateTime;
|
||||
this.Map = map;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Model200Response" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Name">Name.</param>
|
||||
/// <param name="Class">Class.</param>
|
||||
public Model200Response(int? Name = default(int?), string Class = default(string))
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="_class">_class.</param>
|
||||
public Model200Response(int? name = default(int?), string _class = default(string))
|
||||
{
|
||||
this.Name = Name;
|
||||
this.Class = Class;
|
||||
this.Name = name;
|
||||
this.Class = _class;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ModelClient" /> class.
|
||||
/// </summary>
|
||||
/// <param name="__Client">__Client.</param>
|
||||
public ModelClient(string __Client = default(string))
|
||||
/// <param name="_client">_client.</param>
|
||||
public ModelClient(string _client = default(string))
|
||||
{
|
||||
this.__Client = __Client;
|
||||
this.__Client = _client;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Model for testing reserved words
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ModelReturn : IEquatable<ModelReturn>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ModelReturn" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Return">_Return.</param>
|
||||
public ModelReturn(int? _Return = default(int?))
|
||||
{
|
||||
this._Return = _Return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets _Return
|
||||
/// </summary>
|
||||
[DataMember(Name="return", EmitDefaultValue=false)]
|
||||
public int? _Return { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ModelReturn);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ModelReturn instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ModelReturn to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ModelReturn input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this._Return == input._Return ||
|
||||
(this._Return != null &&
|
||||
this._Return.Equals(input._Return))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -38,20 +38,20 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Name" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Name">_Name (required).</param>
|
||||
/// <param name="Property">Property.</param>
|
||||
public Name(int? _Name = default(int?), string Property = default(string))
|
||||
/// <param name="name">name (required).</param>
|
||||
/// <param name="property">property.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="JustNumber">JustNumber.</param>
|
||||
public NumberOnly(decimal? JustNumber = default(decimal?))
|
||||
/// <param name="justNumber">justNumber.</param>
|
||||
public NumberOnly(decimal? justNumber = default(decimal?))
|
||||
{
|
||||
this.JustNumber = JustNumber;
|
||||
this.JustNumber = justNumber;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -66,27 +66,27 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Order" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="PetId">PetId.</param>
|
||||
/// <param name="Quantity">Quantity.</param>
|
||||
/// <param name="ShipDate">ShipDate.</param>
|
||||
/// <param name="Status">Order Status.</param>
|
||||
/// <param name="Complete">Complete (default to false).</param>
|
||||
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)
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="petId">petId.</param>
|
||||
/// <param name="quantity">quantity.</param>
|
||||
/// <param name="shipDate">shipDate.</param>
|
||||
/// <param name="status">Order Status.</param>
|
||||
/// <param name="complete">complete (default to false).</param>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OuterComposite" /> class.
|
||||
/// </summary>
|
||||
/// <param name="MyNumber">MyNumber.</param>
|
||||
/// <param name="MyString">MyString.</param>
|
||||
/// <param name="MyBoolean">MyBoolean.</param>
|
||||
public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean))
|
||||
/// <param name="myNumber">myNumber.</param>
|
||||
/// <param name="myString">myString.</param>
|
||||
/// <param name="myBoolean">myBoolean.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -71,36 +71,36 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Pet" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Category">Category.</param>
|
||||
/// <param name="Name">Name (required).</param>
|
||||
/// <param name="PhotoUrls">PhotoUrls (required).</param>
|
||||
/// <param name="Tags">Tags.</param>
|
||||
/// <param name="Status">pet status in the store.</param>
|
||||
public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List<string> PhotoUrls = default(List<string>), List<Tag> Tags = default(List<Tag>), StatusEnum? Status = default(StatusEnum?))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="category">category.</param>
|
||||
/// <param name="name">name (required).</param>
|
||||
/// <param name="photoUrls">photoUrls (required).</param>
|
||||
/// <param name="tags">tags.</param>
|
||||
/// <param name="status">pet status in the store.</param>
|
||||
public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List<string> photoUrls = default(List<string>), List<Tag> tags = default(List<Tag>), 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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ReadOnlyFirst" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Baz">Baz.</param>
|
||||
public ReadOnlyFirst(string Baz = default(string))
|
||||
/// <param name="baz">baz.</param>
|
||||
public ReadOnlyFirst(string baz = default(string))
|
||||
{
|
||||
this.Baz = Baz;
|
||||
this.Baz = baz;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Return" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Return">_Return.</param>
|
||||
public Return(int? _Return = default(int?))
|
||||
/// <param name="_return">_return.</param>
|
||||
public Return(int? _return = default(int?))
|
||||
{
|
||||
this._Return = _Return;
|
||||
this._Return = _return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||
/// </summary>
|
||||
/// <param name="SpecialPropertyName">SpecialPropertyName.</param>
|
||||
public SpecialModelName(long? SpecialPropertyName = default(long?))
|
||||
/// <param name="specialPropertyName">specialPropertyName.</param>
|
||||
public SpecialModelName(long? specialPropertyName = default(long?))
|
||||
{
|
||||
this.SpecialPropertyName = SpecialPropertyName;
|
||||
this.SpecialPropertyName = specialPropertyName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Tag" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Name">Name.</param>
|
||||
public Tag(long? Id = default(long?), string Name = default(string))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
public Tag(long? id = default(long?), string name = default(string))
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Name = Name;
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,24 +33,24 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="User" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Username">Username.</param>
|
||||
/// <param name="FirstName">FirstName.</param>
|
||||
/// <param name="LastName">LastName.</param>
|
||||
/// <param name="Email">Email.</param>
|
||||
/// <param name="Password">Password.</param>
|
||||
/// <param name="Phone">Phone.</param>
|
||||
/// <param name="UserStatus">User Status.</param>
|
||||
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?))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="username">username.</param>
|
||||
/// <param name="firstName">firstName.</param>
|
||||
/// <param name="lastName">lastName.</param>
|
||||
/// <param name="email">email.</param>
|
||||
/// <param name="password">password.</param>
|
||||
/// <param name="phone">phone.</param>
|
||||
/// <param name="userStatus">User Status.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
|
||||
/// </summary>
|
||||
/// <param name="MapProperty">MapProperty.</param>
|
||||
/// <param name="MapOfMapProperty">MapOfMapProperty.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> MapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> MapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||
/// <param name="mapProperty">mapProperty.</param>
|
||||
/// <param name="mapOfMapProperty">mapOfMapProperty.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> mapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||
{
|
||||
this.MapProperty = MapProperty;
|
||||
this.MapOfMapProperty = MapOfMapProperty;
|
||||
this.MapProperty = mapProperty;
|
||||
this.MapOfMapProperty = mapOfMapProperty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -42,27 +42,27 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Animal" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ClassName">ClassName (required).</param>
|
||||
/// <param name="Color">Color (default to "red").</param>
|
||||
public Animal(string ClassName = default(string), string Color = "red")
|
||||
/// <param name="className">className (required).</param>
|
||||
/// <param name="color">color (default to "red").</param>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ApiResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Code">Code.</param>
|
||||
/// <param name="Type">Type.</param>
|
||||
/// <param name="Message">Message.</param>
|
||||
public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string))
|
||||
/// <param name="code">code.</param>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="message">message.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayArrayNumber">ArrayArrayNumber.</param>
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> ArrayArrayNumber = default(List<List<decimal?>>))
|
||||
/// <param name="arrayArrayNumber">arrayArrayNumber.</param>
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> arrayArrayNumber = default(List<List<decimal?>>))
|
||||
{
|
||||
this.ArrayArrayNumber = ArrayArrayNumber;
|
||||
this.ArrayArrayNumber = arrayArrayNumber;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayNumber">ArrayNumber.</param>
|
||||
public ArrayOfNumberOnly(List<decimal?> ArrayNumber = default(List<decimal?>))
|
||||
/// <param name="arrayNumber">arrayNumber.</param>
|
||||
public ArrayOfNumberOnly(List<decimal?> arrayNumber = default(List<decimal?>))
|
||||
{
|
||||
this.ArrayNumber = ArrayNumber;
|
||||
this.ArrayNumber = arrayNumber;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ArrayTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayOfString">ArrayOfString.</param>
|
||||
/// <param name="ArrayArrayOfInteger">ArrayArrayOfInteger.</param>
|
||||
/// <param name="ArrayArrayOfModel">ArrayArrayOfModel.</param>
|
||||
public ArrayTest(List<string> ArrayOfString = default(List<string>), List<List<long?>> ArrayArrayOfInteger = default(List<List<long?>>), List<List<ReadOnlyFirst>> ArrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
/// <param name="arrayOfString">arrayOfString.</param>
|
||||
/// <param name="arrayArrayOfInteger">arrayArrayOfInteger.</param>
|
||||
/// <param name="arrayArrayOfModel">arrayArrayOfModel.</param>
|
||||
public ArrayTest(List<string> arrayOfString = default(List<string>), List<List<long?>> arrayArrayOfInteger = default(List<List<long?>>), List<List<ReadOnlyFirst>> arrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
{
|
||||
this.ArrayOfString = ArrayOfString;
|
||||
this.ArrayArrayOfInteger = ArrayArrayOfInteger;
|
||||
this.ArrayArrayOfModel = ArrayArrayOfModel;
|
||||
this.ArrayOfString = arrayOfString;
|
||||
this.ArrayArrayOfInteger = arrayArrayOfInteger;
|
||||
this.ArrayArrayOfModel = arrayArrayOfModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,20 +33,20 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Capitalization" /> class.
|
||||
/// </summary>
|
||||
/// <param name="SmallCamel">SmallCamel.</param>
|
||||
/// <param name="CapitalCamel">CapitalCamel.</param>
|
||||
/// <param name="SmallSnake">SmallSnake.</param>
|
||||
/// <param name="CapitalSnake">CapitalSnake.</param>
|
||||
/// <param name="SCAETHFlowPoints">SCAETHFlowPoints.</param>
|
||||
/// <param name="ATT_NAME">Name of the pet .</param>
|
||||
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))
|
||||
/// <param name="smallCamel">smallCamel.</param>
|
||||
/// <param name="capitalCamel">capitalCamel.</param>
|
||||
/// <param name="smallSnake">smallSnake.</param>
|
||||
/// <param name="capitalSnake">capitalSnake.</param>
|
||||
/// <param name="sCAETHFlowPoints">sCAETHFlowPoints.</param>
|
||||
/// <param name="aTTNAME">Name of the pet .</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -38,10 +38,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Cat" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Declawed">Declawed.</param>
|
||||
public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color)
|
||||
/// <param name="declawed">declawed.</param>
|
||||
public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color)
|
||||
{
|
||||
this.Declawed = Declawed;
|
||||
this.Declawed = declawed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Category" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Name">Name.</param>
|
||||
public Category(long? Id = default(long?), string Name = default(string))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
public Category(long? id = default(long?), string name = default(string))
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Name = Name;
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClassModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Class">Class.</param>
|
||||
public ClassModel(string Class = default(string))
|
||||
/// <param name="_class">_class.</param>
|
||||
public ClassModel(string _class = default(string))
|
||||
{
|
||||
this.Class = Class;
|
||||
this.Class = _class;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -38,10 +38,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Dog" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Breed">Breed.</param>
|
||||
public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color)
|
||||
/// <param name="breed">breed.</param>
|
||||
public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
|
||||
{
|
||||
this.Breed = Breed;
|
||||
this.Breed = breed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -84,12 +84,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
|
||||
/// </summary>
|
||||
/// <param name="JustSymbol">JustSymbol.</param>
|
||||
/// <param name="ArrayEnum">ArrayEnum.</param>
|
||||
public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List<ArrayEnumEnum> ArrayEnum = default(List<ArrayEnumEnum>))
|
||||
/// <param name="justSymbol">justSymbol.</param>
|
||||
/// <param name="arrayEnum">arrayEnum.</param>
|
||||
public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List<ArrayEnumEnum> arrayEnum = default(List<ArrayEnumEnum>))
|
||||
{
|
||||
this.JustSymbol = JustSymbol;
|
||||
this.ArrayEnum = ArrayEnum;
|
||||
this.JustSymbol = justSymbol;
|
||||
this.ArrayEnum = arrayEnum;
|
||||
}
|
||||
|
||||
|
||||
|
@ -118,16 +118,16 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="EnumString">EnumString.</param>
|
||||
/// <param name="EnumInteger">EnumInteger.</param>
|
||||
/// <param name="EnumNumber">EnumNumber.</param>
|
||||
/// <param name="OuterEnum">OuterEnum.</param>
|
||||
public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?))
|
||||
/// <param name="enumString">enumString.</param>
|
||||
/// <param name="enumInteger">enumInteger.</param>
|
||||
/// <param name="enumNumber">enumNumber.</param>
|
||||
/// <param name="outerEnum">outerEnum.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -38,66 +38,66 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FormatTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Integer">Integer.</param>
|
||||
/// <param name="Int32">Int32.</param>
|
||||
/// <param name="Int64">Int64.</param>
|
||||
/// <param name="Number">Number (required).</param>
|
||||
/// <param name="Float">Float.</param>
|
||||
/// <param name="Double">Double.</param>
|
||||
/// <param name="String">String.</param>
|
||||
/// <param name="Byte">Byte (required).</param>
|
||||
/// <param name="Binary">Binary.</param>
|
||||
/// <param name="Date">Date (required).</param>
|
||||
/// <param name="DateTime">DateTime.</param>
|
||||
/// <param name="Uuid">Uuid.</param>
|
||||
/// <param name="Password">Password (required).</param>
|
||||
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))
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
/// <param name="_string">_string.</param>
|
||||
/// <param name="_byte">_byte (required).</param>
|
||||
/// <param name="binary">binary.</param>
|
||||
/// <param name="date">date (required).</param>
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="password">password (required).</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -59,12 +59,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MapTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="MapMapOfString">MapMapOfString.</param>
|
||||
/// <param name="MapOfEnumString">MapOfEnumString.</param>
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> MapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> MapOfEnumString = default(Dictionary<string, InnerEnum>))
|
||||
/// <param name="mapMapOfString">mapMapOfString.</param>
|
||||
/// <param name="mapOfEnumString">mapOfEnumString.</param>
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>))
|
||||
{
|
||||
this.MapMapOfString = MapMapOfString;
|
||||
this.MapOfEnumString = MapOfEnumString;
|
||||
this.MapMapOfString = mapMapOfString;
|
||||
this.MapOfEnumString = mapOfEnumString;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MixedPropertiesAndAdditionalPropertiesClass" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Uuid">Uuid.</param>
|
||||
/// <param name="DateTime">DateTime.</param>
|
||||
/// <param name="Map">Map.</param>
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary<string, Animal> Map = default(Dictionary<string, Animal>))
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
/// <param name="map">map.</param>
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary<string, Animal> map = default(Dictionary<string, Animal>))
|
||||
{
|
||||
this.Uuid = Uuid;
|
||||
this.DateTime = DateTime;
|
||||
this.Map = Map;
|
||||
this.Uuid = uuid;
|
||||
this.DateTime = dateTime;
|
||||
this.Map = map;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Model200Response" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Name">Name.</param>
|
||||
/// <param name="Class">Class.</param>
|
||||
public Model200Response(int? Name = default(int?), string Class = default(string))
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="_class">_class.</param>
|
||||
public Model200Response(int? name = default(int?), string _class = default(string))
|
||||
{
|
||||
this.Name = Name;
|
||||
this.Class = Class;
|
||||
this.Name = name;
|
||||
this.Class = _class;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ModelClient" /> class.
|
||||
/// </summary>
|
||||
/// <param name="__Client">__Client.</param>
|
||||
public ModelClient(string __Client = default(string))
|
||||
/// <param name="_client">_client.</param>
|
||||
public ModelClient(string _client = default(string))
|
||||
{
|
||||
this.__Client = __Client;
|
||||
this.__Client = _client;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -38,20 +38,20 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Name" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Name">_Name (required).</param>
|
||||
/// <param name="Property">Property.</param>
|
||||
public Name(int? _Name = default(int?), string Property = default(string))
|
||||
/// <param name="name">name (required).</param>
|
||||
/// <param name="property">property.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="JustNumber">JustNumber.</param>
|
||||
public NumberOnly(decimal? JustNumber = default(decimal?))
|
||||
/// <param name="justNumber">justNumber.</param>
|
||||
public NumberOnly(decimal? justNumber = default(decimal?))
|
||||
{
|
||||
this.JustNumber = JustNumber;
|
||||
this.JustNumber = justNumber;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -66,27 +66,27 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Order" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="PetId">PetId.</param>
|
||||
/// <param name="Quantity">Quantity.</param>
|
||||
/// <param name="ShipDate">ShipDate.</param>
|
||||
/// <param name="Status">Order Status.</param>
|
||||
/// <param name="Complete">Complete (default to false).</param>
|
||||
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)
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="petId">petId.</param>
|
||||
/// <param name="quantity">quantity.</param>
|
||||
/// <param name="shipDate">shipDate.</param>
|
||||
/// <param name="status">Order Status.</param>
|
||||
/// <param name="complete">complete (default to false).</param>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OuterComposite" /> class.
|
||||
/// </summary>
|
||||
/// <param name="MyNumber">MyNumber.</param>
|
||||
/// <param name="MyString">MyString.</param>
|
||||
/// <param name="MyBoolean">MyBoolean.</param>
|
||||
public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean))
|
||||
/// <param name="myNumber">myNumber.</param>
|
||||
/// <param name="myString">myString.</param>
|
||||
/// <param name="myBoolean">myBoolean.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -71,36 +71,36 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Pet" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Category">Category.</param>
|
||||
/// <param name="Name">Name (required).</param>
|
||||
/// <param name="PhotoUrls">PhotoUrls (required).</param>
|
||||
/// <param name="Tags">Tags.</param>
|
||||
/// <param name="Status">pet status in the store.</param>
|
||||
public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List<string> PhotoUrls = default(List<string>), List<Tag> Tags = default(List<Tag>), StatusEnum? Status = default(StatusEnum?))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="category">category.</param>
|
||||
/// <param name="name">name (required).</param>
|
||||
/// <param name="photoUrls">photoUrls (required).</param>
|
||||
/// <param name="tags">tags.</param>
|
||||
/// <param name="status">pet status in the store.</param>
|
||||
public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List<string> photoUrls = default(List<string>), List<Tag> tags = default(List<Tag>), 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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ReadOnlyFirst" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Baz">Baz.</param>
|
||||
public ReadOnlyFirst(string Baz = default(string))
|
||||
/// <param name="baz">baz.</param>
|
||||
public ReadOnlyFirst(string baz = default(string))
|
||||
{
|
||||
this.Baz = Baz;
|
||||
this.Baz = baz;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Return" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Return">_Return.</param>
|
||||
public Return(int? _Return = default(int?))
|
||||
/// <param name="_return">_return.</param>
|
||||
public Return(int? _return = default(int?))
|
||||
{
|
||||
this._Return = _Return;
|
||||
this._Return = _return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SpecialModelName" /> class.
|
||||
/// </summary>
|
||||
/// <param name="SpecialPropertyName">SpecialPropertyName.</param>
|
||||
public SpecialModelName(long? SpecialPropertyName = default(long?))
|
||||
/// <param name="specialPropertyName">specialPropertyName.</param>
|
||||
public SpecialModelName(long? specialPropertyName = default(long?))
|
||||
{
|
||||
this.SpecialPropertyName = SpecialPropertyName;
|
||||
this.SpecialPropertyName = specialPropertyName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Tag" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Name">Name.</param>
|
||||
public Tag(long? Id = default(long?), string Name = default(string))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
public Tag(long? id = default(long?), string name = default(string))
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Name = Name;
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,24 +33,24 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="User" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Username">Username.</param>
|
||||
/// <param name="FirstName">FirstName.</param>
|
||||
/// <param name="LastName">LastName.</param>
|
||||
/// <param name="Email">Email.</param>
|
||||
/// <param name="Password">Password.</param>
|
||||
/// <param name="Phone">Phone.</param>
|
||||
/// <param name="UserStatus">User Status.</param>
|
||||
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?))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="username">username.</param>
|
||||
/// <param name="firstName">firstName.</param>
|
||||
/// <param name="lastName">lastName.</param>
|
||||
/// <param name="email">email.</param>
|
||||
/// <param name="password">password.</param>
|
||||
/// <param name="phone">phone.</param>
|
||||
/// <param name="userStatus">User Status.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AdditionalPropertiesClass" /> class.
|
||||
/// </summary>
|
||||
/// <param name="MapProperty">MapProperty.</param>
|
||||
/// <param name="MapOfMapProperty">MapOfMapProperty.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> MapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> MapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||
/// <param name="mapProperty">mapProperty.</param>
|
||||
/// <param name="mapOfMapProperty">mapOfMapProperty.</param>
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> mapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>))
|
||||
{
|
||||
this.MapProperty = MapProperty;
|
||||
this.MapOfMapProperty = MapOfMapProperty;
|
||||
this.MapProperty = mapProperty;
|
||||
this.MapOfMapProperty = mapOfMapProperty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -42,27 +42,27 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Animal" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ClassName">ClassName (required).</param>
|
||||
/// <param name="Color">Color (default to "red").</param>
|
||||
public Animal(string ClassName = default(string), string Color = "red")
|
||||
/// <param name="className">className (required).</param>
|
||||
/// <param name="color">color (default to "red").</param>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ApiResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Code">Code.</param>
|
||||
/// <param name="Type">Type.</param>
|
||||
/// <param name="Message">Message.</param>
|
||||
public ApiResponse(int? Code = default(int?), string Type = default(string), string Message = default(string))
|
||||
/// <param name="code">code.</param>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="message">message.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayArrayNumber">ArrayArrayNumber.</param>
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> ArrayArrayNumber = default(List<List<decimal?>>))
|
||||
/// <param name="arrayArrayNumber">arrayArrayNumber.</param>
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> arrayArrayNumber = default(List<List<decimal?>>))
|
||||
{
|
||||
this.ArrayArrayNumber = ArrayArrayNumber;
|
||||
this.ArrayArrayNumber = arrayArrayNumber;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayNumber">ArrayNumber.</param>
|
||||
public ArrayOfNumberOnly(List<decimal?> ArrayNumber = default(List<decimal?>))
|
||||
/// <param name="arrayNumber">arrayNumber.</param>
|
||||
public ArrayOfNumberOnly(List<decimal?> arrayNumber = default(List<decimal?>))
|
||||
{
|
||||
this.ArrayNumber = ArrayNumber;
|
||||
this.ArrayNumber = arrayNumber;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ArrayTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="ArrayOfString">ArrayOfString.</param>
|
||||
/// <param name="ArrayArrayOfInteger">ArrayArrayOfInteger.</param>
|
||||
/// <param name="ArrayArrayOfModel">ArrayArrayOfModel.</param>
|
||||
public ArrayTest(List<string> ArrayOfString = default(List<string>), List<List<long?>> ArrayArrayOfInteger = default(List<List<long?>>), List<List<ReadOnlyFirst>> ArrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
/// <param name="arrayOfString">arrayOfString.</param>
|
||||
/// <param name="arrayArrayOfInteger">arrayArrayOfInteger.</param>
|
||||
/// <param name="arrayArrayOfModel">arrayArrayOfModel.</param>
|
||||
public ArrayTest(List<string> arrayOfString = default(List<string>), List<List<long?>> arrayArrayOfInteger = default(List<List<long?>>), List<List<ReadOnlyFirst>> arrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
{
|
||||
this.ArrayOfString = ArrayOfString;
|
||||
this.ArrayArrayOfInteger = ArrayArrayOfInteger;
|
||||
this.ArrayArrayOfModel = ArrayArrayOfModel;
|
||||
this.ArrayOfString = arrayOfString;
|
||||
this.ArrayArrayOfInteger = arrayArrayOfInteger;
|
||||
this.ArrayArrayOfModel = arrayArrayOfModel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,20 +33,20 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Capitalization" /> class.
|
||||
/// </summary>
|
||||
/// <param name="SmallCamel">SmallCamel.</param>
|
||||
/// <param name="CapitalCamel">CapitalCamel.</param>
|
||||
/// <param name="SmallSnake">SmallSnake.</param>
|
||||
/// <param name="CapitalSnake">CapitalSnake.</param>
|
||||
/// <param name="SCAETHFlowPoints">SCAETHFlowPoints.</param>
|
||||
/// <param name="ATT_NAME">Name of the pet .</param>
|
||||
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))
|
||||
/// <param name="smallCamel">smallCamel.</param>
|
||||
/// <param name="capitalCamel">capitalCamel.</param>
|
||||
/// <param name="smallSnake">smallSnake.</param>
|
||||
/// <param name="capitalSnake">capitalSnake.</param>
|
||||
/// <param name="sCAETHFlowPoints">sCAETHFlowPoints.</param>
|
||||
/// <param name="aTTNAME">Name of the pet .</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -38,10 +38,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Cat" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Declawed">Declawed.</param>
|
||||
public Cat(bool? Declawed = default(bool?), string ClassName = "Cat", string Color = "red") : base(ClassName, Color)
|
||||
/// <param name="declawed">declawed.</param>
|
||||
public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color)
|
||||
{
|
||||
this.Declawed = Declawed;
|
||||
this.Declawed = declawed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Category" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Name">Name.</param>
|
||||
public Category(long? Id = default(long?), string Name = default(string))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
public Category(long? id = default(long?), string name = default(string))
|
||||
{
|
||||
this.Id = Id;
|
||||
this.Name = Name;
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClassModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Class">Class.</param>
|
||||
public ClassModel(string Class = default(string))
|
||||
/// <param name="_class">_class.</param>
|
||||
public ClassModel(string _class = default(string))
|
||||
{
|
||||
this.Class = Class;
|
||||
this.Class = _class;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -38,10 +38,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Dog" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Breed">Breed.</param>
|
||||
public Dog(string Breed = default(string), string ClassName = "Dog", string Color = "red") : base(ClassName, Color)
|
||||
/// <param name="breed">breed.</param>
|
||||
public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
|
||||
{
|
||||
this.Breed = Breed;
|
||||
this.Breed = breed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -84,12 +84,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumArrays" /> class.
|
||||
/// </summary>
|
||||
/// <param name="JustSymbol">JustSymbol.</param>
|
||||
/// <param name="ArrayEnum">ArrayEnum.</param>
|
||||
public EnumArrays(JustSymbolEnum? JustSymbol = default(JustSymbolEnum?), List<ArrayEnumEnum> ArrayEnum = default(List<ArrayEnumEnum>))
|
||||
/// <param name="justSymbol">justSymbol.</param>
|
||||
/// <param name="arrayEnum">arrayEnum.</param>
|
||||
public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List<ArrayEnumEnum> arrayEnum = default(List<ArrayEnumEnum>))
|
||||
{
|
||||
this.JustSymbol = JustSymbol;
|
||||
this.ArrayEnum = ArrayEnum;
|
||||
this.JustSymbol = justSymbol;
|
||||
this.ArrayEnum = arrayEnum;
|
||||
}
|
||||
|
||||
|
||||
|
@ -118,16 +118,16 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="EnumString">EnumString.</param>
|
||||
/// <param name="EnumInteger">EnumInteger.</param>
|
||||
/// <param name="EnumNumber">EnumNumber.</param>
|
||||
/// <param name="OuterEnum">OuterEnum.</param>
|
||||
public EnumTest(EnumStringEnum? EnumString = default(EnumStringEnum?), EnumIntegerEnum? EnumInteger = default(EnumIntegerEnum?), EnumNumberEnum? EnumNumber = default(EnumNumberEnum?), OuterEnum? OuterEnum = default(OuterEnum?))
|
||||
/// <param name="enumString">enumString.</param>
|
||||
/// <param name="enumInteger">enumInteger.</param>
|
||||
/// <param name="enumNumber">enumNumber.</param>
|
||||
/// <param name="outerEnum">outerEnum.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -38,66 +38,66 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FormatTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Integer">Integer.</param>
|
||||
/// <param name="Int32">Int32.</param>
|
||||
/// <param name="Int64">Int64.</param>
|
||||
/// <param name="Number">Number (required).</param>
|
||||
/// <param name="Float">Float.</param>
|
||||
/// <param name="Double">Double.</param>
|
||||
/// <param name="String">String.</param>
|
||||
/// <param name="Byte">Byte (required).</param>
|
||||
/// <param name="Binary">Binary.</param>
|
||||
/// <param name="Date">Date (required).</param>
|
||||
/// <param name="DateTime">DateTime.</param>
|
||||
/// <param name="Uuid">Uuid.</param>
|
||||
/// <param name="Password">Password (required).</param>
|
||||
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))
|
||||
/// <param name="integer">integer.</param>
|
||||
/// <param name="int32">int32.</param>
|
||||
/// <param name="int64">int64.</param>
|
||||
/// <param name="number">number (required).</param>
|
||||
/// <param name="_float">_float.</param>
|
||||
/// <param name="_double">_double.</param>
|
||||
/// <param name="_string">_string.</param>
|
||||
/// <param name="_byte">_byte (required).</param>
|
||||
/// <param name="binary">binary.</param>
|
||||
/// <param name="date">date (required).</param>
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="password">password (required).</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -59,12 +59,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MapTest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="MapMapOfString">MapMapOfString.</param>
|
||||
/// <param name="MapOfEnumString">MapOfEnumString.</param>
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> MapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> MapOfEnumString = default(Dictionary<string, InnerEnum>))
|
||||
/// <param name="mapMapOfString">mapMapOfString.</param>
|
||||
/// <param name="mapOfEnumString">mapOfEnumString.</param>
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>))
|
||||
{
|
||||
this.MapMapOfString = MapMapOfString;
|
||||
this.MapOfEnumString = MapOfEnumString;
|
||||
this.MapMapOfString = mapMapOfString;
|
||||
this.MapOfEnumString = mapOfEnumString;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MixedPropertiesAndAdditionalPropertiesClass" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Uuid">Uuid.</param>
|
||||
/// <param name="DateTime">DateTime.</param>
|
||||
/// <param name="Map">Map.</param>
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid? Uuid = default(Guid?), DateTime? DateTime = default(DateTime?), Dictionary<string, Animal> Map = default(Dictionary<string, Animal>))
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="dateTime">dateTime.</param>
|
||||
/// <param name="map">map.</param>
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary<string, Animal> map = default(Dictionary<string, Animal>))
|
||||
{
|
||||
this.Uuid = Uuid;
|
||||
this.DateTime = DateTime;
|
||||
this.Map = Map;
|
||||
this.Uuid = uuid;
|
||||
this.DateTime = dateTime;
|
||||
this.Map = map;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,12 +33,12 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Model200Response" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Name">Name.</param>
|
||||
/// <param name="Class">Class.</param>
|
||||
public Model200Response(int? Name = default(int?), string Class = default(string))
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="_class">_class.</param>
|
||||
public Model200Response(int? name = default(int?), string _class = default(string))
|
||||
{
|
||||
this.Name = Name;
|
||||
this.Class = Class;
|
||||
this.Name = name;
|
||||
this.Class = _class;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ModelClient" /> class.
|
||||
/// </summary>
|
||||
/// <param name="__Client">__Client.</param>
|
||||
public ModelClient(string __Client = default(string))
|
||||
/// <param name="_client">_client.</param>
|
||||
public ModelClient(string _client = default(string))
|
||||
{
|
||||
this.__Client = __Client;
|
||||
this.__Client = _client;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -38,20 +38,20 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Name" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Name">_Name (required).</param>
|
||||
/// <param name="Property">Property.</param>
|
||||
public Name(int? _Name = default(int?), string Property = default(string))
|
||||
/// <param name="name">name (required).</param>
|
||||
/// <param name="property">property.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NumberOnly" /> class.
|
||||
/// </summary>
|
||||
/// <param name="JustNumber">JustNumber.</param>
|
||||
public NumberOnly(decimal? JustNumber = default(decimal?))
|
||||
/// <param name="justNumber">justNumber.</param>
|
||||
public NumberOnly(decimal? justNumber = default(decimal?))
|
||||
{
|
||||
this.JustNumber = JustNumber;
|
||||
this.JustNumber = justNumber;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -66,27 +66,27 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Order" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="PetId">PetId.</param>
|
||||
/// <param name="Quantity">Quantity.</param>
|
||||
/// <param name="ShipDate">ShipDate.</param>
|
||||
/// <param name="Status">Order Status.</param>
|
||||
/// <param name="Complete">Complete (default to false).</param>
|
||||
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)
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="petId">petId.</param>
|
||||
/// <param name="quantity">quantity.</param>
|
||||
/// <param name="shipDate">shipDate.</param>
|
||||
/// <param name="status">Order Status.</param>
|
||||
/// <param name="complete">complete (default to false).</param>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,14 +33,14 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OuterComposite" /> class.
|
||||
/// </summary>
|
||||
/// <param name="MyNumber">MyNumber.</param>
|
||||
/// <param name="MyString">MyString.</param>
|
||||
/// <param name="MyBoolean">MyBoolean.</param>
|
||||
public OuterComposite(OuterNumber MyNumber = default(OuterNumber), OuterString MyString = default(OuterString), OuterBoolean MyBoolean = default(OuterBoolean))
|
||||
/// <param name="myNumber">myNumber.</param>
|
||||
/// <param name="myString">myString.</param>
|
||||
/// <param name="myBoolean">myBoolean.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -71,36 +71,36 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Pet" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Id">Id.</param>
|
||||
/// <param name="Category">Category.</param>
|
||||
/// <param name="Name">Name (required).</param>
|
||||
/// <param name="PhotoUrls">PhotoUrls (required).</param>
|
||||
/// <param name="Tags">Tags.</param>
|
||||
/// <param name="Status">pet status in the store.</param>
|
||||
public Pet(long? Id = default(long?), Category Category = default(Category), string Name = default(string), List<string> PhotoUrls = default(List<string>), List<Tag> Tags = default(List<Tag>), StatusEnum? Status = default(StatusEnum?))
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="category">category.</param>
|
||||
/// <param name="name">name (required).</param>
|
||||
/// <param name="photoUrls">photoUrls (required).</param>
|
||||
/// <param name="tags">tags.</param>
|
||||
/// <param name="status">pet status in the store.</param>
|
||||
public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List<string> photoUrls = default(List<string>), List<Tag> tags = default(List<Tag>), 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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ReadOnlyFirst" /> class.
|
||||
/// </summary>
|
||||
/// <param name="Baz">Baz.</param>
|
||||
public ReadOnlyFirst(string Baz = default(string))
|
||||
/// <param name="baz">baz.</param>
|
||||
public ReadOnlyFirst(string baz = default(string))
|
||||
{
|
||||
this.Baz = Baz;
|
||||
this.Baz = baz;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -33,10 +33,10 @@ namespace IO.Swagger.Model
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Return" /> class.
|
||||
/// </summary>
|
||||
/// <param name="_Return">_Return.</param>
|
||||
public Return(int? _Return = default(int?))
|
||||
/// <param name="_return">_return.</param>
|
||||
public Return(int? _return = default(int?))
|
||||
{
|
||||
this._Return = _Return;
|
||||
this._Return = _return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user