Fix logic of getNullableType of csharp server and client. (#3537)

* Fix default nullable

* Fix tests

* Update samples

* Fix template default value

* Update samples

* Also fix for interface

* update samples
This commit is contained in:
Juang, Yi-Lin 2019-08-06 10:26:50 +08:00 committed by William Cheng
parent 2bbebf9752
commit 5ab1c9c75b
451 changed files with 9700 additions and 3839 deletions

View File

@ -160,6 +160,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
"Int64", "Int64",
"Float", "Float",
"Guid?", "Guid?",
"Guid",
"System.IO.Stream", // not really a primitive, we include it to avoid model import "System.IO.Stream", // not really a primitive, we include it to avoid model import
"Object") "Object")
); );

View File

@ -22,6 +22,7 @@ import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.media.Schema; import io.swagger.v3.oas.models.media.Schema;
import io.swagger.v3.parser.util.SchemaTypeUtil; import io.swagger.v3.parser.util.SchemaTypeUtil;
import org.openapitools.codegen.*; import org.openapitools.codegen.*;
import org.openapitools.codegen.utils.ModelUtils;
import org.openapitools.codegen.utils.URLPathUtils; import org.openapitools.codegen.utils.URLPathUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -407,12 +408,12 @@ public class AspNetCoreServerCodegen extends AbstractCSharpCodegen {
@Override @Override
public String getNullableType(Schema p, String type) { public String getNullableType(Schema p, String type) {
boolean isNullableExpected = p.getNullable() == null || (p.getNullable() != null && p.getNullable()); if (languageSpecificPrimitives.contains(type)) {
if (isSupportNullable() && ModelUtils.isNullable(p) && nullableType.contains(type)) {
if (isNullableExpected && languageSpecificPrimitives.contains(type + "?")) {
return type + "?"; return type + "?";
} else if (languageSpecificPrimitives.contains(type)) { } else {
return type; return type;
}
} else { } else {
return null; return null;
} }

View File

@ -882,12 +882,12 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
@Override @Override
public String getNullableType(Schema p, String type) { public String getNullableType(Schema p, String type) {
boolean isNullableExpected = p.getNullable() == null || (p.getNullable() != null && p.getNullable()); if (languageSpecificPrimitives.contains(type)) {
if (isSupportNullable() && ModelUtils.isNullable(p) && nullableType.contains(type)) {
if (isNullableExpected && languageSpecificPrimitives.contains(type + "?")) {
return type + "?"; return type + "?";
} else if (languageSpecificPrimitives.contains(type)) { } else {
return type; return type;
}
} else { } else {
return null; return null;
} }

View File

@ -32,7 +32,7 @@ namespace {{packageName}}.{{apiPackage}}
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param> {{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns> {{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
/// <summary> /// <summary>
/// {{summary}} /// {{summary}}
@ -43,7 +43,7 @@ namespace {{packageName}}.{{apiPackage}}
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param> {{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns> {{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns>
ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
{{/operation}} {{/operation}}
#endregion Synchronous Operations #endregion Synchronous Operations
{{#supportsAsync}} {{#supportsAsync}}
@ -58,7 +58,7 @@ namespace {{packageName}}.{{apiPackage}}
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param> {{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns> {{/allParams}}/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns>
{{#returnType}}System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); {{#returnType}}System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
/// <summary> /// <summary>
/// {{summary}} /// {{summary}}
@ -69,7 +69,7 @@ namespace {{packageName}}.{{apiPackage}}
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param> {{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns> {{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns>
System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
{{/operation}} {{/operation}}
#endregion Asynchronous Operations #endregion Asynchronous Operations
{{/supportsAsync}} {{/supportsAsync}}
@ -190,7 +190,7 @@ namespace {{packageName}}.{{apiPackage}}
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param> {{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns> {{/allParams}}/// <returns>{{#returnType}}{{returnType}}{{/returnType}}</returns>
public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
{ {
{{#returnType}}ApiResponse<{{{returnType}}}> localVarResponse = {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); {{#returnType}}ApiResponse<{{{returnType}}}> localVarResponse = {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
return localVarResponse.Data;{{/returnType}}{{^returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{/returnType}} return localVarResponse.Data;{{/returnType}}{{^returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{/returnType}}
@ -202,7 +202,7 @@ namespace {{packageName}}.{{apiPackage}}
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param> {{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns> {{/allParams}}/// <returns>ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}}</returns>
public ApiResponse<{{#returnType}} {{{returnType}}} {{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) public ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
{ {
{{#allParams}} {{#allParams}}
{{#required}} {{#required}}
@ -325,7 +325,7 @@ namespace {{packageName}}.{{apiPackage}}
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param> {{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns> {{/allParams}}/// <returns>Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}}</returns>
{{#returnType}}public async System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) {{#returnType}}public async System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
{ {
{{#returnType}}ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); {{#returnType}}ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{/returnType}} return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}AsyncWithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{/returnType}}
@ -338,7 +338,7 @@ namespace {{packageName}}.{{apiPackage}}
/// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="{{packageName}}.Client.ApiException">Thrown when fails to make API call</exception>
{{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param> {{#allParams}}/// <param name="{{paramName}}">{{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}</param>
{{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns> {{/allParams}}/// <returns>Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}}</returns>
public async System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) public async System.Threading.Tasks.Task<ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}AsyncWithHttpInfo ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
{ {
{{#allParams}} {{#allParams}}
{{#required}} {{#required}}

View File

@ -141,10 +141,10 @@ public class CSharpModelTest {
final CodegenProperty property1 = cm.vars.get(0); final CodegenProperty property1 = cm.vars.get(0);
Assert.assertEquals(property1.baseName, "id"); Assert.assertEquals(property1.baseName, "id");
Assert.assertEquals(property1.dataType, "long?"); Assert.assertEquals(property1.dataType, "long");
Assert.assertEquals(property1.name, "Id"); Assert.assertEquals(property1.name, "Id");
Assert.assertNull(property1.defaultValue); Assert.assertNull(property1.defaultValue);
Assert.assertEquals(property1.baseType, "long?"); Assert.assertEquals(property1.baseType, "long");
Assert.assertTrue(property1.hasMore); Assert.assertTrue(property1.hasMore);
Assert.assertTrue(property1.required); Assert.assertTrue(property1.required);
Assert.assertTrue(property1.isPrimitiveType); Assert.assertTrue(property1.isPrimitiveType);
@ -161,10 +161,10 @@ public class CSharpModelTest {
final CodegenProperty property3 = cm.vars.get(2); final CodegenProperty property3 = cm.vars.get(2);
Assert.assertEquals(property3.baseName, "createdAt"); Assert.assertEquals(property3.baseName, "createdAt");
Assert.assertEquals(property3.dataType, "DateTime?"); Assert.assertEquals(property3.dataType, "DateTime");
Assert.assertEquals(property3.name, "CreatedAt"); Assert.assertEquals(property3.name, "CreatedAt");
Assert.assertNull(property3.defaultValue); Assert.assertNull(property3.defaultValue);
Assert.assertEquals(property3.baseType, "DateTime?"); Assert.assertEquals(property3.baseType, "DateTime");
Assert.assertFalse(property3.hasMore); Assert.assertFalse(property3.hasMore);
Assert.assertFalse(property3.required); Assert.assertFalse(property3.required);
} }
@ -221,6 +221,58 @@ public class CSharpModelTest {
Assert.assertTrue(property3.isPrimitiveType); Assert.assertTrue(property3.isPrimitiveType);
} }
@Test(description = "convert a model with a nullable property")
public void nullablePropertyTest() {
final Schema model = new Schema()
.description("a sample model")
.addProperties("id", new IntegerSchema().format(SchemaTypeUtil.INTEGER64_FORMAT).nullable(true))
.addProperties("urls", new ArraySchema()
.items(new StringSchema()))
.addProperties("name", new StringSchema().nullable(true))
.addRequiredItem("id");
final DefaultCodegen codegen = new CSharpClientCodegen();
OpenAPI openAPI = TestUtils.createOpenAPIWithOneSchema("sample", model);
codegen.setOpenAPI(openAPI);
final CodegenModel cm = codegen.fromModel("sample", model);
Assert.assertEquals(cm.name, "sample");
Assert.assertEquals(cm.classname, "Sample");
Assert.assertEquals(cm.description, "a sample model");
Assert.assertEquals(cm.vars.size(), 3);
final CodegenProperty property1 = cm.vars.get(0);
Assert.assertEquals(property1.baseName, "id");
Assert.assertEquals(property1.dataType, "long?");
Assert.assertEquals(property1.name, "Id");
Assert.assertNull(property1.defaultValue);
Assert.assertEquals(property1.baseType, "long?");
Assert.assertTrue(property1.hasMore);
Assert.assertTrue(property1.required);
Assert.assertTrue(property1.isPrimitiveType);
final CodegenProperty property2 = cm.vars.get(1);
Assert.assertEquals(property2.baseName, "urls");
Assert.assertEquals(property2.dataType, "List<string>");
Assert.assertEquals(property2.name, "Urls");
Assert.assertNull(property2.defaultValue);
Assert.assertEquals(property2.baseType, "List");
Assert.assertTrue(property2.hasMore);
Assert.assertEquals(property2.containerType, "array");
Assert.assertFalse(property2.required);
Assert.assertTrue(property2.isPrimitiveType);
Assert.assertTrue(property2.isContainer);
final CodegenProperty property3 = cm.vars.get(2);
Assert.assertEquals(property3.baseName, "name");
Assert.assertEquals(property3.dataType, "string");
Assert.assertEquals(property3.name, "Name");
Assert.assertNull(property3.defaultValue);
Assert.assertEquals(property3.baseType, "string");
Assert.assertFalse(property3.hasMore);
Assert.assertFalse(property3.required);
Assert.assertTrue(property3.isPrimitiveType);
}
@Test(description = "convert a model with list property") @Test(description = "convert a model with list property")
public void listPropertyTest() { public void listPropertyTest() {
final Schema model = new Schema() final Schema model = new Schema()
@ -241,10 +293,10 @@ public class CSharpModelTest {
final CodegenProperty property1 = cm.vars.get(0); final CodegenProperty property1 = cm.vars.get(0);
Assert.assertEquals(property1.baseName, "id"); Assert.assertEquals(property1.baseName, "id");
Assert.assertEquals(property1.dataType, "long?"); Assert.assertEquals(property1.dataType, "long");
Assert.assertEquals(property1.name, "Id"); Assert.assertEquals(property1.name, "Id");
Assert.assertNull(property1.defaultValue); Assert.assertNull(property1.defaultValue);
Assert.assertEquals(property1.baseType, "long?"); Assert.assertEquals(property1.baseType, "long");
Assert.assertTrue(property1.hasMore); Assert.assertTrue(property1.hasMore);
Assert.assertTrue(property1.required); Assert.assertTrue(property1.required);
Assert.assertTrue(property1.isPrimitiveType); Assert.assertTrue(property1.isPrimitiveType);

View File

@ -117,7 +117,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**List<User>**](List.md)| List of user object | **body** | [**List<User>**](User.md)| List of user object |
### Return type ### Return type
@ -176,7 +176,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | [**List<User>**](List.md)| List of user object | **body** | [**List<User>**](User.md)| List of user object |
### Return type ### Return type

View File

@ -14,7 +14,7 @@ Name | Type | Description | Notes
**Binary** | **System.IO.Stream** | | [optional] **Binary** | **System.IO.Stream** | | [optional]
**Date** | **DateTime** | | **Date** | **DateTime** | |
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Uuid** | [**Guid**](Guid.md) | | [optional] **Uuid** | **Guid** | | [optional]
**Password** | **string** | | **Password** | **string** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -3,7 +3,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Uuid** | [**Guid**](Guid.md) | | [optional] **Uuid** | **Guid** | | [optional]
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Map** | [**Dictionary&lt;string, Animal&gt;**](Animal.md) | | [optional] **Map** | [**Dictionary&lt;string, Animal&gt;**](Animal.md) | | [optional]

View File

@ -14,7 +14,7 @@ Name | Type | Description | Notes
**Binary** | **System.IO.Stream** | | [optional] **Binary** | **System.IO.Stream** | | [optional]
**Date** | **DateTime** | | **Date** | **DateTime** | |
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Uuid** | [**Guid**](Guid.md) | | [optional] **Uuid** | **Guid** | | [optional]
**Password** | **string** | | **Password** | **string** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -3,7 +3,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Uuid** | [**Guid**](Guid.md) | | [optional] **Uuid** | **Guid** | | [optional]
**DateTime** | **DateTime** | | [optional] **DateTime** | **DateTime** | | [optional]
**Map** | [**Dictionary&lt;string, Animal&gt;**](Animal.md) | | [optional] **Map** | [**Dictionary&lt;string, Animal&gt;**](Animal.md) | | [optional]

View File

@ -6,10 +6,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**MapString** | **Dictionary&lt;string, string&gt;** | | [optional] **MapString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapNumber** | **Dictionary&lt;string, decimal?&gt;** | | [optional] **MapNumber** | **Dictionary&lt;string, decimal&gt;** | | [optional]
**MapInteger** | **Dictionary&lt;string, int?&gt;** | | [optional] **MapInteger** | **Dictionary&lt;string, int&gt;** | | [optional]
**MapBoolean** | **Dictionary&lt;string, bool?&gt;** | | [optional] **MapBoolean** | **Dictionary&lt;string, bool&gt;** | | [optional]
**MapArrayInteger** | **Dictionary&lt;string, List&lt;int?&gt;&gt;** | | [optional] **MapArrayInteger** | **Dictionary&lt;string, List&lt;int&gt;&gt;** | | [optional]
**MapArrayAnytype** | **Dictionary&lt;string, List&lt;Object&gt;&gt;** | | [optional] **MapArrayAnytype** | **Dictionary&lt;string, List&lt;Object&gt;&gt;** | | [optional]
**MapMapString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional] **MapMapString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapMapAnytype** | **Dictionary&lt;string, Dictionary&lt;string, Object&gt;&gt;** | | [optional] **MapMapAnytype** | **Dictionary&lt;string, Dictionary&lt;string, Object&gt;&gt;** | | [optional]

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Code** | **int?** | | [optional] **Code** | **int** | | [optional]
**Type** | **string** | | [optional] **Type** | **string** | | [optional]
**Message** | **string** | | [optional] **Message** | **string** | | [optional]

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ArrayArrayNumber** | **List&lt;List&lt;decimal?&gt;&gt;** | | [optional] **ArrayArrayNumber** | **List&lt;List&lt;decimal&gt;&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ArrayNumber** | **List&lt;decimal?&gt;** | | [optional] **ArrayNumber** | **List&lt;decimal&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -6,7 +6,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ArrayOfString** | **List&lt;string&gt;** | | [optional] **ArrayOfString** | **List&lt;string&gt;** | | [optional]
**ArrayArrayOfInteger** | **List&lt;List&lt;long?&gt;&gt;** | | [optional] **ArrayArrayOfInteger** | **List&lt;List&lt;long&gt;&gt;** | | [optional]
**ArrayArrayOfModel** | **List&lt;List&lt;ReadOnlyFirst&gt;&gt;** | | [optional] **ArrayArrayOfModel** | **List&lt;List&lt;ReadOnlyFirst&gt;&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ClassName** | **string** | | **ClassName** | **string** | |
**Color** | **string** | | [optional] [default to "red"] **Color** | **string** | | [optional] [default to "red"]
**Declawed** | **bool?** | | [optional] **Declawed** | **bool** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Declawed** | **bool?** | | [optional] **Declawed** | **bool** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**Name** | **string** | | [default to "default-name"] **Name** | **string** | | [default to "default-name"]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -7,8 +7,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**EnumString** | **string** | | [optional] **EnumString** | **string** | | [optional]
**EnumStringRequired** | **string** | | **EnumStringRequired** | **string** | |
**EnumInteger** | **int?** | | [optional] **EnumInteger** | **int** | | [optional]
**EnumNumber** | **double?** | | [optional] **EnumNumber** | **double** | | [optional]
**OuterEnum** | **OuterEnum** | | [optional] **OuterEnum** | **OuterEnum** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -96,7 +96,7 @@ No authorization required
## FakeOuterBooleanSerialize ## FakeOuterBooleanSerialize
> bool? FakeOuterBooleanSerialize (bool? body = null) > bool FakeOuterBooleanSerialize (bool body = null)
@ -119,11 +119,11 @@ namespace Example
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2"; Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default); var apiInstance = new FakeApi(Configuration.Default);
var body = true; // bool? | Input boolean as post body (optional) var body = true; // bool | Input boolean as post body (optional)
try try
{ {
bool? result = apiInstance.FakeOuterBooleanSerialize(body); bool result = apiInstance.FakeOuterBooleanSerialize(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (ApiException e) catch (ApiException e)
@ -142,11 +142,11 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | **bool?**| Input boolean as post body | [optional] **body** | **bool**| Input boolean as post body | [optional]
### Return type ### Return type
**bool?** **bool**
### Authorization ### Authorization
@ -244,7 +244,7 @@ No authorization required
## FakeOuterNumberSerialize ## FakeOuterNumberSerialize
> decimal? FakeOuterNumberSerialize (decimal? body = null) > decimal FakeOuterNumberSerialize (decimal body = null)
@ -267,11 +267,11 @@ namespace Example
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2"; Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default); var apiInstance = new FakeApi(Configuration.Default);
var body = 8.14; // decimal? | Input number as post body (optional) var body = 8.14; // decimal | Input number as post body (optional)
try try
{ {
decimal? result = apiInstance.FakeOuterNumberSerialize(body); decimal result = apiInstance.FakeOuterNumberSerialize(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (ApiException e) catch (ApiException e)
@ -290,11 +290,11 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | **decimal?**| Input number as post body | [optional] **body** | **decimal**| Input number as post body | [optional]
### Return type ### Return type
**decimal?** **decimal**
### Authorization ### Authorization
@ -613,7 +613,7 @@ No authorization required
## TestEndpointParameters ## TestEndpointParameters
> void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) > void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, System.IO.Stream binary = null, DateTime date = null, DateTime dateTime = null, string password = null, string callback = null)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -640,18 +640,18 @@ namespace Example
Configuration.Default.Password = "YOUR_PASSWORD"; Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new FakeApi(Configuration.Default); var apiInstance = new FakeApi(Configuration.Default);
var number = 8.14; // decimal? | None var number = 8.14; // decimal | None
var _double = 1.2D; // double? | None var _double = 1.2D; // double | None
var patternWithoutDelimiter = patternWithoutDelimiter_example; // string | None var patternWithoutDelimiter = patternWithoutDelimiter_example; // string | None
var _byte = BYTE_ARRAY_DATA_HERE; // byte[] | None var _byte = BYTE_ARRAY_DATA_HERE; // byte[] | None
var integer = 56; // int? | None (optional) var integer = 56; // int | None (optional)
var int32 = 56; // int? | None (optional) var int32 = 56; // int | None (optional)
var int64 = 789; // long? | None (optional) var int64 = 789; // long | None (optional)
var _float = 3.4F; // float? | None (optional) var _float = 3.4F; // float | None (optional)
var _string = _string_example; // string | None (optional) var _string = _string_example; // string | None (optional)
var binary = BINARY_DATA_HERE; // System.IO.Stream | None (optional) var binary = BINARY_DATA_HERE; // System.IO.Stream | None (optional)
var date = 2013-10-20; // DateTime? | None (optional) var date = 2013-10-20; // DateTime | None (optional)
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional) var dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None (optional)
var password = password_example; // string | None (optional) var password = password_example; // string | None (optional)
var callback = callback_example; // string | None (optional) var callback = callback_example; // string | None (optional)
@ -676,18 +676,18 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**number** | **decimal?**| None | **number** | **decimal**| None |
**_double** | **double?**| None | **_double** | **double**| None |
**patternWithoutDelimiter** | **string**| None | **patternWithoutDelimiter** | **string**| None |
**_byte** | **byte[]**| None | **_byte** | **byte[]**| None |
**integer** | **int?**| None | [optional] **integer** | **int**| None | [optional]
**int32** | **int?**| None | [optional] **int32** | **int**| None | [optional]
**int64** | **long?**| None | [optional] **int64** | **long**| None | [optional]
**_float** | **float?**| None | [optional] **_float** | **float**| None | [optional]
**_string** | **string**| None | [optional] **_string** | **string**| None | [optional]
**binary** | **System.IO.Stream**| None | [optional] **binary** | **System.IO.Stream**| None | [optional]
**date** | **DateTime?**| None | [optional] **date** | **DateTime**| None | [optional]
**dateTime** | **DateTime?**| None | [optional] **dateTime** | **DateTime**| None | [optional]
**password** | **string**| None | [optional] **password** | **string**| None | [optional]
**callback** | **string**| None | [optional] **callback** | **string**| None | [optional]
@ -718,7 +718,7 @@ void (empty response body)
## TestEnumParameters ## TestEnumParameters
> void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null) > void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
To test enum parameters To test enum parameters
@ -745,8 +745,8 @@ namespace Example
var enumHeaderString = enumHeaderString_example; // string | Header parameter enum test (string) (optional) (default to -efg) var enumHeaderString = enumHeaderString_example; // string | Header parameter enum test (string) (optional) (default to -efg)
var enumQueryStringArray = enumQueryStringArray_example; // List<string> | Query parameter enum test (string array) (optional) var enumQueryStringArray = enumQueryStringArray_example; // List<string> | Query parameter enum test (string array) (optional)
var enumQueryString = enumQueryString_example; // string | Query parameter enum test (string) (optional) (default to -efg) var enumQueryString = enumQueryString_example; // string | Query parameter enum test (string) (optional) (default to -efg)
var enumQueryInteger = 56; // int? | Query parameter enum test (double) (optional) var enumQueryInteger = 56; // int | Query parameter enum test (double) (optional)
var enumQueryDouble = 1.2D; // double? | Query parameter enum test (double) (optional) var enumQueryDouble = 1.2D; // double | Query parameter enum test (double) (optional)
var enumFormStringArray = new List<string>(); // List<string> | Form parameter enum test (string array) (optional) (default to $) var enumFormStringArray = new List<string>(); // List<string> | Form parameter enum test (string array) (optional) (default to $)
var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg) var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg)
@ -775,8 +775,8 @@ Name | Type | Description | Notes
**enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg] **enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg]
**enumQueryStringArray** | **List&lt;string&gt;**| Query parameter enum test (string array) | [optional] **enumQueryStringArray** | **List&lt;string&gt;**| Query parameter enum test (string array) | [optional]
**enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg] **enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg]
**enumQueryInteger** | **int?**| Query parameter enum test (double) | [optional] **enumQueryInteger** | **int**| Query parameter enum test (double) | [optional]
**enumQueryDouble** | **double?**| Query parameter enum test (double) | [optional] **enumQueryDouble** | **double**| Query parameter enum test (double) | [optional]
**enumFormStringArray** | [**List&lt;string&gt;**](string.md)| Form parameter enum test (string array) | [optional] [default to $] **enumFormStringArray** | [**List&lt;string&gt;**](string.md)| Form parameter enum test (string array) | [optional] [default to $]
**enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg] **enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg]
@ -807,7 +807,7 @@ No authorization required
## TestGroupParameters ## TestGroupParameters
> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) > void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = null, bool booleanGroup = null, long int64Group = null)
Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional)
@ -830,12 +830,12 @@ namespace Example
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2"; Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default); var apiInstance = new FakeApi(Configuration.Default);
var requiredStringGroup = 56; // int? | Required String in group parameters var requiredStringGroup = 56; // int | Required String in group parameters
var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
var requiredInt64Group = 789; // long? | Required Integer in group parameters var requiredInt64Group = 789; // long | Required Integer in group parameters
var stringGroup = 56; // int? | String in group parameters (optional) var stringGroup = 56; // int | String in group parameters (optional)
var booleanGroup = true; // bool? | Boolean in group parameters (optional) var booleanGroup = true; // bool | Boolean in group parameters (optional)
var int64Group = 789; // long? | Integer in group parameters (optional) var int64Group = 789; // long | Integer in group parameters (optional)
try try
{ {
@ -858,12 +858,12 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requiredStringGroup** | **int?**| Required String in group parameters | **requiredStringGroup** | **int**| Required String in group parameters |
**requiredBooleanGroup** | **bool?**| Required Boolean in group parameters | **requiredBooleanGroup** | **bool**| Required Boolean in group parameters |
**requiredInt64Group** | **long?**| Required Integer in group parameters | **requiredInt64Group** | **long**| Required Integer in group parameters |
**stringGroup** | **int?**| String in group parameters | [optional] **stringGroup** | **int**| String in group parameters | [optional]
**booleanGroup** | **bool?**| Boolean in group parameters | [optional] **booleanGroup** | **bool**| Boolean in group parameters | [optional]
**int64Group** | **long?**| Integer in group parameters | [optional] **int64Group** | **long**| Integer in group parameters | [optional]
### Return type ### Return type

View File

@ -5,18 +5,18 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Integer** | **int?** | | [optional] **Integer** | **int** | | [optional]
**Int32** | **int?** | | [optional] **Int32** | **int** | | [optional]
**Int64** | **long?** | | [optional] **Int64** | **long** | | [optional]
**Number** | **decimal?** | | **Number** | **decimal** | |
**Float** | **float?** | | [optional] **Float** | **float** | | [optional]
**Double** | **double?** | | [optional] **Double** | **double** | | [optional]
**String** | **string** | | [optional] **String** | **string** | | [optional]
**Byte** | **byte[]** | | **Byte** | **byte[]** | |
**Binary** | **System.IO.Stream** | | [optional] **Binary** | **System.IO.Stream** | | [optional]
**Date** | **DateTime?** | | **Date** | **DateTime** | |
**DateTime** | **DateTime?** | | [optional] **DateTime** | **DateTime** | | [optional]
**Uuid** | **Guid?** | | [optional] **Uuid** | **Guid** | | [optional]
**Password** | **string** | | **Password** | **string** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -7,8 +7,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional] **MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional] **MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool?&gt;** | | [optional] **DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool?&gt;** | | [optional] **IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,8 +5,8 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Uuid** | **Guid?** | | [optional] **Uuid** | **Guid** | | [optional]
**DateTime** | **DateTime?** | | [optional] **DateTime** | **DateTime** | | [optional]
**Map** | [**Dictionary&lt;string, Animal&gt;**](Animal.md) | | [optional] **Map** | [**Dictionary&lt;string, Animal&gt;**](Animal.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Name** | **int?** | | [optional] **Name** | **int** | | [optional]
**Class** | **string** | | [optional] **Class** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -5,10 +5,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**_Name** | **int?** | | **_Name** | **int** | |
**SnakeCase** | **int?** | | [optional] **SnakeCase** | **int** | | [optional]
**Property** | **string** | | [optional] **Property** | **string** | | [optional]
**_123Number** | **int?** | | [optional] **_123Number** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**JustNumber** | **decimal?** | | [optional] **JustNumber** | **decimal** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,12 +5,12 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**PetId** | **long?** | | [optional] **PetId** | **long** | | [optional]
**Quantity** | **int?** | | [optional] **Quantity** | **int** | | [optional]
**ShipDate** | **DateTime?** | | [optional] **ShipDate** | **DateTime** | | [optional]
**Status** | **string** | Order Status | [optional] **Status** | **string** | Order Status | [optional]
**Complete** | **bool?** | | [optional] [default to false] **Complete** | **bool** | | [optional] [default to false]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,9 +5,9 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**MyNumber** | **decimal?** | | [optional] **MyNumber** | **decimal** | | [optional]
**MyString** | **string** | | [optional] **MyString** | **string** | | [optional]
**MyBoolean** | **bool?** | | [optional] **MyBoolean** | **bool** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**Category** | [**Category**](Category.md) | | [optional] **Category** | [**Category**](Category.md) | | [optional]
**Name** | **string** | | **Name** | **string** | |
**PhotoUrls** | **List&lt;string&gt;** | | **PhotoUrls** | **List&lt;string&gt;** | |

View File

@ -94,7 +94,7 @@ void (empty response body)
## DeletePet ## DeletePet
> void DeletePet (long? petId, string apiKey = null) > void DeletePet (long petId, string apiKey = null)
Deletes a pet Deletes a pet
@ -118,7 +118,7 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(Configuration.Default); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | Pet id to delete var petId = 789; // long | Pet id to delete
var apiKey = apiKey_example; // string | (optional) var apiKey = apiKey_example; // string | (optional)
try try
@ -142,7 +142,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| Pet id to delete | **petId** | **long**| Pet id to delete |
**apiKey** | **string**| | [optional] **apiKey** | **string**| | [optional]
### Return type ### Return type
@ -330,7 +330,7 @@ Name | Type | Description | Notes
## GetPetById ## GetPetById
> Pet GetPetById (long? petId) > Pet GetPetById (long petId)
Find pet by ID Find pet by ID
@ -358,7 +358,7 @@ namespace Example
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer"); // Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
var apiInstance = new PetApi(Configuration.Default); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | ID of pet to return var petId = 789; // long | ID of pet to return
try try
{ {
@ -382,7 +382,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| ID of pet to return | **petId** | **long**| ID of pet to return |
### Return type ### Return type
@ -490,7 +490,7 @@ void (empty response body)
## UpdatePetWithForm ## UpdatePetWithForm
> void UpdatePetWithForm (long? petId, string name = null, string status = null) > void UpdatePetWithForm (long petId, string name = null, string status = null)
Updates a pet in the store with form data Updates a pet in the store with form data
@ -514,7 +514,7 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(Configuration.Default); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | ID of pet that needs to be updated var petId = 789; // long | ID of pet that needs to be updated
var name = name_example; // string | Updated name of the pet (optional) var name = name_example; // string | Updated name of the pet (optional)
var status = status_example; // string | Updated status of the pet (optional) var status = status_example; // string | Updated status of the pet (optional)
@ -539,7 +539,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| ID of pet that needs to be updated | **petId** | **long**| ID of pet that needs to be updated |
**name** | **string**| Updated name of the pet | [optional] **name** | **string**| Updated name of the pet | [optional]
**status** | **string**| Updated status of the pet | [optional] **status** | **string**| Updated status of the pet | [optional]
@ -569,7 +569,7 @@ void (empty response body)
## UploadFile ## UploadFile
> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) > ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null)
uploads an image uploads an image
@ -593,7 +593,7 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(Configuration.Default); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | ID of pet to update var petId = 789; // long | ID of pet to update
var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional) var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
var file = BINARY_DATA_HERE; // System.IO.Stream | file to upload (optional) var file = BINARY_DATA_HERE; // System.IO.Stream | file to upload (optional)
@ -619,7 +619,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| ID of pet to update | **petId** | **long**| ID of pet to update |
**additionalMetadata** | **string**| Additional data to pass to server | [optional] **additionalMetadata** | **string**| Additional data to pass to server | [optional]
**file** | **System.IO.Stream**| file to upload | [optional] **file** | **System.IO.Stream**| file to upload | [optional]
@ -649,7 +649,7 @@ Name | Type | Description | Notes
## UploadFileWithRequiredFile ## UploadFileWithRequiredFile
> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) > ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null)
uploads an image (required) uploads an image (required)
@ -673,7 +673,7 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(Configuration.Default); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | ID of pet to update var petId = 789; // long | ID of pet to update
var requiredFile = BINARY_DATA_HERE; // System.IO.Stream | file to upload var requiredFile = BINARY_DATA_HERE; // System.IO.Stream | file to upload
var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional) var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
@ -699,7 +699,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| ID of pet to update | **petId** | **long**| ID of pet to update |
**requiredFile** | **System.IO.Stream**| file to upload | **requiredFile** | **System.IO.Stream**| file to upload |
**additionalMetadata** | **string**| Additional data to pass to server | [optional] **additionalMetadata** | **string**| Additional data to pass to server | [optional]

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**_Return** | **int?** | | [optional] **_Return** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**SpecialPropertyName** | **long?** | | [optional] **SpecialPropertyName** | **long** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -88,7 +88,7 @@ No authorization required
## GetInventory ## GetInventory
> Dictionary&lt;string, int?&gt; GetInventory () > Dictionary&lt;string, int&gt; GetInventory ()
Returns pet inventories by status Returns pet inventories by status
@ -120,7 +120,7 @@ namespace Example
try try
{ {
// Returns pet inventories by status // Returns pet inventories by status
Dictionary<string, int?> result = apiInstance.GetInventory(); Dictionary<string, int> result = apiInstance.GetInventory();
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (ApiException e) catch (ApiException e)
@ -140,7 +140,7 @@ This endpoint does not need any parameter.
### Return type ### Return type
**Dictionary<string, int?>** **Dictionary<string, int>**
### Authorization ### Authorization
@ -164,7 +164,7 @@ This endpoint does not need any parameter.
## GetOrderById ## GetOrderById
> Order GetOrderById (long? orderId) > Order GetOrderById (long orderId)
Find purchase order by ID Find purchase order by ID
@ -187,7 +187,7 @@ namespace Example
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2"; Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new StoreApi(Configuration.Default); var apiInstance = new StoreApi(Configuration.Default);
var orderId = 789; // long? | ID of pet that needs to be fetched var orderId = 789; // long | ID of pet that needs to be fetched
try try
{ {
@ -211,7 +211,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**orderId** | **long?**| ID of pet that needs to be fetched | **orderId** | **long**| ID of pet that needs to be fetched |
### Return type ### Return type

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**Name** | **string** | | [optional] **Name** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -6,10 +6,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**StringItem** | **string** | | [default to "what"] **StringItem** | **string** | | [default to "what"]
**NumberItem** | **decimal?** | | **NumberItem** | **decimal** | |
**IntegerItem** | **int?** | | **IntegerItem** | **int** | |
**BoolItem** | **bool?** | | [default to true] **BoolItem** | **bool** | | [default to true]
**ArrayItem** | **List&lt;int?&gt;** | | **ArrayItem** | **List&lt;int&gt;** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -6,10 +6,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**StringItem** | **string** | | **StringItem** | **string** | |
**NumberItem** | **decimal?** | | **NumberItem** | **decimal** | |
**IntegerItem** | **int?** | | **IntegerItem** | **int** | |
**BoolItem** | **bool?** | | **BoolItem** | **bool** | |
**ArrayItem** | **List&lt;int?&gt;** | | **ArrayItem** | **List&lt;int&gt;** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,14 +5,14 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**Username** | **string** | | [optional] **Username** | **string** | | [optional]
**FirstName** | **string** | | [optional] **FirstName** | **string** | | [optional]
**LastName** | **string** | | [optional] **LastName** | **string** | | [optional]
**Email** | **string** | | [optional] **Email** | **string** | | [optional]
**Password** | **string** | | [optional] **Password** | **string** | | [optional]
**Phone** | **string** | | [optional] **Phone** | **string** | | [optional]
**UserStatus** | **int?** | User Status | [optional] **UserStatus** | **int** | User Status | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -6,34 +6,34 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**AttributeString** | **string** | | [optional] **AttributeString** | **string** | | [optional]
**AttributeNumber** | **decimal?** | | [optional] **AttributeNumber** | **decimal** | | [optional]
**AttributeInteger** | **int?** | | [optional] **AttributeInteger** | **int** | | [optional]
**AttributeBoolean** | **bool?** | | [optional] **AttributeBoolean** | **bool** | | [optional]
**WrappedArray** | **List&lt;int?&gt;** | | [optional] **WrappedArray** | **List&lt;int&gt;** | | [optional]
**NameString** | **string** | | [optional] **NameString** | **string** | | [optional]
**NameNumber** | **decimal?** | | [optional] **NameNumber** | **decimal** | | [optional]
**NameInteger** | **int?** | | [optional] **NameInteger** | **int** | | [optional]
**NameBoolean** | **bool?** | | [optional] **NameBoolean** | **bool** | | [optional]
**NameArray** | **List&lt;int?&gt;** | | [optional] **NameArray** | **List&lt;int&gt;** | | [optional]
**NameWrappedArray** | **List&lt;int?&gt;** | | [optional] **NameWrappedArray** | **List&lt;int&gt;** | | [optional]
**PrefixString** | **string** | | [optional] **PrefixString** | **string** | | [optional]
**PrefixNumber** | **decimal?** | | [optional] **PrefixNumber** | **decimal** | | [optional]
**PrefixInteger** | **int?** | | [optional] **PrefixInteger** | **int** | | [optional]
**PrefixBoolean** | **bool?** | | [optional] **PrefixBoolean** | **bool** | | [optional]
**PrefixArray** | **List&lt;int?&gt;** | | [optional] **PrefixArray** | **List&lt;int&gt;** | | [optional]
**PrefixWrappedArray** | **List&lt;int?&gt;** | | [optional] **PrefixWrappedArray** | **List&lt;int&gt;** | | [optional]
**NamespaceString** | **string** | | [optional] **NamespaceString** | **string** | | [optional]
**NamespaceNumber** | **decimal?** | | [optional] **NamespaceNumber** | **decimal** | | [optional]
**NamespaceInteger** | **int?** | | [optional] **NamespaceInteger** | **int** | | [optional]
**NamespaceBoolean** | **bool?** | | [optional] **NamespaceBoolean** | **bool** | | [optional]
**NamespaceArray** | **List&lt;int?&gt;** | | [optional] **NamespaceArray** | **List&lt;int&gt;** | | [optional]
**NamespaceWrappedArray** | **List&lt;int?&gt;** | | [optional] **NamespaceWrappedArray** | **List&lt;int&gt;** | | [optional]
**PrefixNsString** | **string** | | [optional] **PrefixNsString** | **string** | | [optional]
**PrefixNsNumber** | **decimal?** | | [optional] **PrefixNsNumber** | **decimal** | | [optional]
**PrefixNsInteger** | **int?** | | [optional] **PrefixNsInteger** | **int** | | [optional]
**PrefixNsBoolean** | **bool?** | | [optional] **PrefixNsBoolean** | **bool** | | [optional]
**PrefixNsArray** | **List&lt;int?&gt;** | | [optional] **PrefixNsArray** | **List&lt;int&gt;** | | [optional]
**PrefixNsWrappedArray** | **List&lt;int?&gt;** | | [optional] **PrefixNsWrappedArray** | **List&lt;int&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -53,8 +53,8 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param> /// <param name="body">Input boolean as post body (optional)</param>
/// <returns>bool?</returns> /// <returns>bool</returns>
bool? FakeOuterBooleanSerialize (bool? body = null); bool FakeOuterBooleanSerialize (bool body = default(bool));
/// <summary> /// <summary>
/// ///
@ -64,8 +64,8 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param> /// <param name="body">Input boolean as post body (optional)</param>
/// <returns>ApiResponse of bool?</returns> /// <returns>ApiResponse of bool</returns>
ApiResponse<bool?> FakeOuterBooleanSerializeWithHttpInfo (bool? body = null); ApiResponse<bool> FakeOuterBooleanSerializeWithHttpInfo (bool body = default(bool));
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -75,7 +75,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>OuterComposite</returns> /// <returns>OuterComposite</returns>
OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null); OuterComposite FakeOuterCompositeSerialize (OuterComposite body = default(OuterComposite));
/// <summary> /// <summary>
/// ///
@ -86,7 +86,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>ApiResponse of OuterComposite</returns> /// <returns>ApiResponse of OuterComposite</returns>
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null); ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = default(OuterComposite));
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -95,8 +95,8 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param> /// <param name="body">Input number as post body (optional)</param>
/// <returns>decimal?</returns> /// <returns>decimal</returns>
decimal? FakeOuterNumberSerialize (decimal? body = null); decimal FakeOuterNumberSerialize (decimal body = default(decimal));
/// <summary> /// <summary>
/// ///
@ -106,8 +106,8 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param> /// <param name="body">Input number as post body (optional)</param>
/// <returns>ApiResponse of decimal?</returns> /// <returns>ApiResponse of decimal</returns>
ApiResponse<decimal?> FakeOuterNumberSerializeWithHttpInfo (decimal? body = null); ApiResponse<decimal> FakeOuterNumberSerializeWithHttpInfo (decimal body = default(decimal));
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -117,7 +117,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param> /// <param name="body">Input string as post body (optional)</param>
/// <returns>string</returns> /// <returns>string</returns>
string FakeOuterStringSerialize (string body = null); string FakeOuterStringSerialize (string body = default(string));
/// <summary> /// <summary>
/// ///
@ -128,7 +128,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param> /// <param name="body">Input string as post body (optional)</param>
/// <returns>ApiResponse of string</returns> /// <returns>ApiResponse of string</returns>
ApiResponse<string> FakeOuterStringSerializeWithHttpInfo (string body = null); ApiResponse<string> FakeOuterStringSerializeWithHttpInfo (string body = default(string));
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -216,7 +216,7 @@ namespace Org.OpenAPITools.Api
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param> /// <param name="callback">None (optional)</param>
/// <returns></returns> /// <returns></returns>
void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null); void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string));
/// <summary> /// <summary>
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -240,7 +240,7 @@ namespace Org.OpenAPITools.Api
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param> /// <param name="callback">None (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null); ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string));
/// <summary> /// <summary>
/// To test enum parameters /// To test enum parameters
/// </summary> /// </summary>
@ -257,7 +257,7 @@ namespace Org.OpenAPITools.Api
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param> /// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param> /// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <returns></returns> /// <returns></returns>
void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null); void TestEnumParameters (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
/// <summary> /// <summary>
/// To test enum parameters /// To test enum parameters
@ -275,7 +275,7 @@ namespace Org.OpenAPITools.Api
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param> /// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param> /// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestEnumParametersWithHttpInfo (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null); ApiResponse<Object> TestEnumParametersWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
/// <summary> /// <summary>
/// Fake endpoint to test group parameters (optional) /// Fake endpoint to test group parameters (optional)
/// </summary> /// </summary>
@ -290,7 +290,7 @@ namespace Org.OpenAPITools.Api
/// <param name="booleanGroup">Boolean in group parameters (optional)</param> /// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param> /// <param name="int64Group">Integer in group parameters (optional)</param>
/// <returns></returns> /// <returns></returns>
void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null); void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long));
/// <summary> /// <summary>
/// Fake endpoint to test group parameters (optional) /// Fake endpoint to test group parameters (optional)
@ -306,7 +306,7 @@ namespace Org.OpenAPITools.Api
/// <param name="booleanGroup">Boolean in group parameters (optional)</param> /// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param> /// <param name="int64Group">Integer in group parameters (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestGroupParametersWithHttpInfo (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null); ApiResponse<Object> TestGroupParametersWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long));
/// <summary> /// <summary>
/// test inline additionalProperties /// test inline additionalProperties
/// </summary> /// </summary>
@ -382,8 +382,8 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param> /// <param name="body">Input boolean as post body (optional)</param>
/// <returns>Task of bool?</returns> /// <returns>Task of bool</returns>
System.Threading.Tasks.Task<bool?> FakeOuterBooleanSerializeAsync (bool? body = null); System.Threading.Tasks.Task<bool> FakeOuterBooleanSerializeAsync (bool body = default(bool));
/// <summary> /// <summary>
/// ///
@ -393,8 +393,8 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param> /// <param name="body">Input boolean as post body (optional)</param>
/// <returns>Task of ApiResponse (bool?)</returns> /// <returns>Task of ApiResponse (bool)</returns>
System.Threading.Tasks.Task<ApiResponse<bool?>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = null); System.Threading.Tasks.Task<ApiResponse<bool>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool body = default(bool));
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -404,7 +404,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>Task of OuterComposite</returns> /// <returns>Task of OuterComposite</returns>
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null); System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = default(OuterComposite));
/// <summary> /// <summary>
/// ///
@ -415,7 +415,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>Task of ApiResponse (OuterComposite)</returns> /// <returns>Task of ApiResponse (OuterComposite)</returns>
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null); System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = default(OuterComposite));
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -424,8 +424,8 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param> /// <param name="body">Input number as post body (optional)</param>
/// <returns>Task of decimal?</returns> /// <returns>Task of decimal</returns>
System.Threading.Tasks.Task<decimal?> FakeOuterNumberSerializeAsync (decimal? body = null); System.Threading.Tasks.Task<decimal> FakeOuterNumberSerializeAsync (decimal body = default(decimal));
/// <summary> /// <summary>
/// ///
@ -435,8 +435,8 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param> /// <param name="body">Input number as post body (optional)</param>
/// <returns>Task of ApiResponse (decimal?)</returns> /// <returns>Task of ApiResponse (decimal)</returns>
System.Threading.Tasks.Task<ApiResponse<decimal?>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = null); System.Threading.Tasks.Task<ApiResponse<decimal>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal body = default(decimal));
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -446,7 +446,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param> /// <param name="body">Input string as post body (optional)</param>
/// <returns>Task of string</returns> /// <returns>Task of string</returns>
System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = null); System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = default(string));
/// <summary> /// <summary>
/// ///
@ -457,7 +457,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param> /// <param name="body">Input string as post body (optional)</param>
/// <returns>Task of ApiResponse (string)</returns> /// <returns>Task of ApiResponse (string)</returns>
System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = null); System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = default(string));
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -545,7 +545,7 @@ namespace Org.OpenAPITools.Api
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param> /// <param name="callback">None (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestEndpointParametersAsync (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null); System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string));
/// <summary> /// <summary>
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -569,7 +569,7 @@ namespace Org.OpenAPITools.Api
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param> /// <param name="callback">None (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null); System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string));
/// <summary> /// <summary>
/// To test enum parameters /// To test enum parameters
/// </summary> /// </summary>
@ -586,7 +586,7 @@ namespace Org.OpenAPITools.Api
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param> /// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param> /// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null); System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
/// <summary> /// <summary>
/// To test enum parameters /// To test enum parameters
@ -604,7 +604,7 @@ namespace Org.OpenAPITools.Api
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param> /// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param> /// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null); System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string));
/// <summary> /// <summary>
/// Fake endpoint to test group parameters (optional) /// Fake endpoint to test group parameters (optional)
/// </summary> /// </summary>
@ -619,7 +619,7 @@ namespace Org.OpenAPITools.Api
/// <param name="booleanGroup">Boolean in group parameters (optional)</param> /// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param> /// <param name="int64Group">Integer in group parameters (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestGroupParametersAsync (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null); System.Threading.Tasks.Task TestGroupParametersAsync (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long));
/// <summary> /// <summary>
/// Fake endpoint to test group parameters (optional) /// Fake endpoint to test group parameters (optional)
@ -635,7 +635,7 @@ namespace Org.OpenAPITools.Api
/// <param name="booleanGroup">Boolean in group parameters (optional)</param> /// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param> /// <param name="int64Group">Integer in group parameters (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null); System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long));
/// <summary> /// <summary>
/// test inline additionalProperties /// test inline additionalProperties
/// </summary> /// </summary>
@ -951,10 +951,10 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param> /// <param name="body">Input boolean as post body (optional)</param>
/// <returns>bool?</returns> /// <returns>bool</returns>
public bool? FakeOuterBooleanSerialize (bool? body = null) public bool FakeOuterBooleanSerialize (bool body = default(bool))
{ {
ApiResponse<bool?> localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); ApiResponse<bool> localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -963,8 +963,8 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param> /// <param name="body">Input boolean as post body (optional)</param>
/// <returns>ApiResponse of bool?</returns> /// <returns>ApiResponse of bool</returns>
public ApiResponse< bool? > FakeOuterBooleanSerializeWithHttpInfo (bool? body = null) public ApiResponse<bool> FakeOuterBooleanSerializeWithHttpInfo (bool body = default(bool))
{ {
var localVarPath = "/fake/outer/boolean"; var localVarPath = "/fake/outer/boolean";
@ -1011,9 +1011,9 @@ namespace Org.OpenAPITools.Api
if (exception != null) throw exception; if (exception != null) throw exception;
} }
return new ApiResponse<bool?>(localVarStatusCode, return new ApiResponse<bool>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); (bool) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool)));
} }
/// <summary> /// <summary>
@ -1021,10 +1021,10 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param> /// <param name="body">Input boolean as post body (optional)</param>
/// <returns>Task of bool?</returns> /// <returns>Task of bool</returns>
public async System.Threading.Tasks.Task<bool?> FakeOuterBooleanSerializeAsync (bool? body = null) public async System.Threading.Tasks.Task<bool> FakeOuterBooleanSerializeAsync (bool body = default(bool))
{ {
ApiResponse<bool?> localVarResponse = await FakeOuterBooleanSerializeAsyncWithHttpInfo(body); ApiResponse<bool> localVarResponse = await FakeOuterBooleanSerializeAsyncWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -1034,8 +1034,8 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input boolean as post body (optional)</param> /// <param name="body">Input boolean as post body (optional)</param>
/// <returns>Task of ApiResponse (bool?)</returns> /// <returns>Task of ApiResponse (bool)</returns>
public async System.Threading.Tasks.Task<ApiResponse<bool?>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool? body = null) public async System.Threading.Tasks.Task<ApiResponse<bool>> FakeOuterBooleanSerializeAsyncWithHttpInfo (bool body = default(bool))
{ {
var localVarPath = "/fake/outer/boolean"; var localVarPath = "/fake/outer/boolean";
@ -1082,9 +1082,9 @@ namespace Org.OpenAPITools.Api
if (exception != null) throw exception; if (exception != null) throw exception;
} }
return new ApiResponse<bool?>(localVarStatusCode, return new ApiResponse<bool>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); (bool) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool)));
} }
/// <summary> /// <summary>
@ -1093,7 +1093,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>OuterComposite</returns> /// <returns>OuterComposite</returns>
public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null) public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = default(OuterComposite))
{ {
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body); ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
@ -1105,7 +1105,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>ApiResponse of OuterComposite</returns> /// <returns>ApiResponse of OuterComposite</returns>
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null) public ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = default(OuterComposite))
{ {
var localVarPath = "/fake/outer/composite"; var localVarPath = "/fake/outer/composite";
@ -1163,7 +1163,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>Task of OuterComposite</returns> /// <returns>Task of OuterComposite</returns>
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null) public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = default(OuterComposite))
{ {
ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body); ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
@ -1176,7 +1176,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input composite as post body (optional)</param> /// <param name="body">Input composite as post body (optional)</param>
/// <returns>Task of ApiResponse (OuterComposite)</returns> /// <returns>Task of ApiResponse (OuterComposite)</returns>
public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null) public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = default(OuterComposite))
{ {
var localVarPath = "/fake/outer/composite"; var localVarPath = "/fake/outer/composite";
@ -1233,10 +1233,10 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param> /// <param name="body">Input number as post body (optional)</param>
/// <returns>decimal?</returns> /// <returns>decimal</returns>
public decimal? FakeOuterNumberSerialize (decimal? body = null) public decimal FakeOuterNumberSerialize (decimal body = default(decimal))
{ {
ApiResponse<decimal?> localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); ApiResponse<decimal> localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -1245,8 +1245,8 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param> /// <param name="body">Input number as post body (optional)</param>
/// <returns>ApiResponse of decimal?</returns> /// <returns>ApiResponse of decimal</returns>
public ApiResponse< decimal? > FakeOuterNumberSerializeWithHttpInfo (decimal? body = null) public ApiResponse<decimal> FakeOuterNumberSerializeWithHttpInfo (decimal body = default(decimal))
{ {
var localVarPath = "/fake/outer/number"; var localVarPath = "/fake/outer/number";
@ -1293,9 +1293,9 @@ namespace Org.OpenAPITools.Api
if (exception != null) throw exception; if (exception != null) throw exception;
} }
return new ApiResponse<decimal?>(localVarStatusCode, return new ApiResponse<decimal>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(decimal?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal?))); (decimal) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal)));
} }
/// <summary> /// <summary>
@ -1303,10 +1303,10 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param> /// <param name="body">Input number as post body (optional)</param>
/// <returns>Task of decimal?</returns> /// <returns>Task of decimal</returns>
public async System.Threading.Tasks.Task<decimal?> FakeOuterNumberSerializeAsync (decimal? body = null) public async System.Threading.Tasks.Task<decimal> FakeOuterNumberSerializeAsync (decimal body = default(decimal))
{ {
ApiResponse<decimal?> localVarResponse = await FakeOuterNumberSerializeAsyncWithHttpInfo(body); ApiResponse<decimal> localVarResponse = await FakeOuterNumberSerializeAsyncWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -1316,8 +1316,8 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input number as post body (optional)</param> /// <param name="body">Input number as post body (optional)</param>
/// <returns>Task of ApiResponse (decimal?)</returns> /// <returns>Task of ApiResponse (decimal)</returns>
public async System.Threading.Tasks.Task<ApiResponse<decimal?>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal? body = null) public async System.Threading.Tasks.Task<ApiResponse<decimal>> FakeOuterNumberSerializeAsyncWithHttpInfo (decimal body = default(decimal))
{ {
var localVarPath = "/fake/outer/number"; var localVarPath = "/fake/outer/number";
@ -1364,9 +1364,9 @@ namespace Org.OpenAPITools.Api
if (exception != null) throw exception; if (exception != null) throw exception;
} }
return new ApiResponse<decimal?>(localVarStatusCode, return new ApiResponse<decimal>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(decimal?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal?))); (decimal) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(decimal)));
} }
/// <summary> /// <summary>
@ -1375,7 +1375,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param> /// <param name="body">Input string as post body (optional)</param>
/// <returns>string</returns> /// <returns>string</returns>
public string FakeOuterStringSerialize (string body = null) public string FakeOuterStringSerialize (string body = default(string))
{ {
ApiResponse<string> localVarResponse = FakeOuterStringSerializeWithHttpInfo(body); ApiResponse<string> localVarResponse = FakeOuterStringSerializeWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
@ -1387,7 +1387,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param> /// <param name="body">Input string as post body (optional)</param>
/// <returns>ApiResponse of string</returns> /// <returns>ApiResponse of string</returns>
public ApiResponse< string > FakeOuterStringSerializeWithHttpInfo (string body = null) public ApiResponse<string> FakeOuterStringSerializeWithHttpInfo (string body = default(string))
{ {
var localVarPath = "/fake/outer/string"; var localVarPath = "/fake/outer/string";
@ -1445,7 +1445,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param> /// <param name="body">Input string as post body (optional)</param>
/// <returns>Task of string</returns> /// <returns>Task of string</returns>
public async System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = null) public async System.Threading.Tasks.Task<string> FakeOuterStringSerializeAsync (string body = default(string))
{ {
ApiResponse<string> localVarResponse = await FakeOuterStringSerializeAsyncWithHttpInfo(body); ApiResponse<string> localVarResponse = await FakeOuterStringSerializeAsyncWithHttpInfo(body);
return localVarResponse.Data; return localVarResponse.Data;
@ -1458,7 +1458,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="body">Input string as post body (optional)</param> /// <param name="body">Input string as post body (optional)</param>
/// <returns>Task of ApiResponse (string)</returns> /// <returns>Task of ApiResponse (string)</returns>
public async System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = null) public async System.Threading.Tasks.Task<ApiResponse<string>> FakeOuterStringSerializeAsyncWithHttpInfo (string body = default(string))
{ {
var localVarPath = "/fake/outer/string"; var localVarPath = "/fake/outer/string";
@ -1980,7 +1980,7 @@ namespace Org.OpenAPITools.Api
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param> /// <param name="callback">None (optional)</param>
/// <returns></returns> /// <returns></returns>
public void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) public void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
{ {
TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
} }
@ -2004,7 +2004,7 @@ namespace Org.OpenAPITools.Api
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param> /// <param name="callback">None (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) public ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
{ {
// verify the required parameter 'number' is set // verify the required parameter 'number' is set
if (number == null) if (number == null)
@ -2099,7 +2099,7 @@ namespace Org.OpenAPITools.Api
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param> /// <param name="callback">None (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
{ {
await TestEndpointParametersAsyncWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); await TestEndpointParametersAsyncWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
@ -2124,7 +2124,7 @@ namespace Org.OpenAPITools.Api
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <param name="callback">None (optional)</param> /// <param name="callback">None (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = default(int), int int32 = default(int), long int64 = default(long), float _float = default(float), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), string password = default(string), string callback = default(string))
{ {
// verify the required parameter 'number' is set // verify the required parameter 'number' is set
if (number == null) if (number == null)
@ -2213,7 +2213,7 @@ namespace Org.OpenAPITools.Api
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param> /// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param> /// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <returns></returns> /// <returns></returns>
public void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null) public void TestEnumParameters (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
{ {
TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
} }
@ -2231,7 +2231,7 @@ namespace Org.OpenAPITools.Api
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param> /// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param> /// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> TestEnumParametersWithHttpInfo (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null) public ApiResponse<Object> TestEnumParametersWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
{ {
var localVarPath = "/fake"; var localVarPath = "/fake";
@ -2296,7 +2296,7 @@ namespace Org.OpenAPITools.Api
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param> /// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param> /// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null) public async System.Threading.Tasks.Task TestEnumParametersAsync (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
{ {
await TestEnumParametersAsyncWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); await TestEnumParametersAsyncWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
@ -2315,7 +2315,7 @@ namespace Org.OpenAPITools.Api
/// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param> /// <param name="enumFormStringArray">Form parameter enum test (string array) (optional, default to $)</param>
/// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param> /// <param name="enumFormString">Form parameter enum test (string) (optional, default to -efg)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEnumParametersAsyncWithHttpInfo (List<string> enumHeaderStringArray = default(List<string>), string enumHeaderString = default(string), List<string> enumQueryStringArray = default(List<string>), string enumQueryString = default(string), int enumQueryInteger = default(int), double enumQueryDouble = default(double), List<string> enumFormStringArray = default(List<string>), string enumFormString = default(string))
{ {
var localVarPath = "/fake"; var localVarPath = "/fake";
@ -2378,7 +2378,7 @@ namespace Org.OpenAPITools.Api
/// <param name="booleanGroup">Boolean in group parameters (optional)</param> /// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param> /// <param name="int64Group">Integer in group parameters (optional)</param>
/// <returns></returns> /// <returns></returns>
public void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) public void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long))
{ {
TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
} }
@ -2394,7 +2394,7 @@ namespace Org.OpenAPITools.Api
/// <param name="booleanGroup">Boolean in group parameters (optional)</param> /// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param> /// <param name="int64Group">Integer in group parameters (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> TestGroupParametersWithHttpInfo (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) public ApiResponse<Object> TestGroupParametersWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long))
{ {
// verify the required parameter 'requiredStringGroup' is set // verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null) if (requiredStringGroup == null)
@ -2463,7 +2463,7 @@ namespace Org.OpenAPITools.Api
/// <param name="booleanGroup">Boolean in group parameters (optional)</param> /// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param> /// <param name="int64Group">Integer in group parameters (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestGroupParametersAsync (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) public async System.Threading.Tasks.Task TestGroupParametersAsync (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long))
{ {
await TestGroupParametersAsyncWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); await TestGroupParametersAsyncWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
@ -2480,7 +2480,7 @@ namespace Org.OpenAPITools.Api
/// <param name="booleanGroup">Boolean in group parameters (optional)</param> /// <param name="booleanGroup">Boolean in group parameters (optional)</param>
/// <param name="int64Group">Integer in group parameters (optional)</param> /// <param name="int64Group">Integer in group parameters (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> TestGroupParametersAsyncWithHttpInfo (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = default(int), bool booleanGroup = default(bool), long int64Group = default(long))
{ {
// verify the required parameter 'requiredStringGroup' is set // verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null) if (requiredStringGroup == null)

View File

@ -55,7 +55,7 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">Pet id to delete</param> /// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param> /// <param name="apiKey"> (optional)</param>
/// <returns></returns> /// <returns></returns>
void DeletePet (long? petId, string apiKey = null); void DeletePet (long petId, string apiKey = default(string));
/// <summary> /// <summary>
/// Deletes a pet /// Deletes a pet
@ -67,7 +67,7 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">Pet id to delete</param> /// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param> /// <param name="apiKey"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> DeletePetWithHttpInfo (long? petId, string apiKey = null); ApiResponse<Object> DeletePetWithHttpInfo (long petId, string apiKey = default(string));
/// <summary> /// <summary>
/// Finds Pets by status /// Finds Pets by status
/// </summary> /// </summary>
@ -119,7 +119,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param> /// <param name="petId">ID of pet to return</param>
/// <returns>Pet</returns> /// <returns>Pet</returns>
Pet GetPetById (long? petId); Pet GetPetById (long petId);
/// <summary> /// <summary>
/// Find pet by ID /// Find pet by ID
@ -130,7 +130,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param> /// <param name="petId">ID of pet to return</param>
/// <returns>ApiResponse of Pet</returns> /// <returns>ApiResponse of Pet</returns>
ApiResponse<Pet> GetPetByIdWithHttpInfo (long? petId); ApiResponse<Pet> GetPetByIdWithHttpInfo (long petId);
/// <summary> /// <summary>
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
@ -163,7 +163,7 @@ namespace Org.OpenAPITools.Api
/// <param name="name">Updated name of the pet (optional)</param> /// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param> /// <param name="status">Updated status of the pet (optional)</param>
/// <returns></returns> /// <returns></returns>
void UpdatePetWithForm (long? petId, string name = null, string status = null); void UpdatePetWithForm (long petId, string name = default(string), string status = default(string));
/// <summary> /// <summary>
/// Updates a pet in the store with form data /// Updates a pet in the store with form data
@ -176,7 +176,7 @@ namespace Org.OpenAPITools.Api
/// <param name="name">Updated name of the pet (optional)</param> /// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param> /// <param name="status">Updated status of the pet (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> UpdatePetWithFormWithHttpInfo (long? petId, string name = null, string status = null); ApiResponse<Object> UpdatePetWithFormWithHttpInfo (long petId, string name = default(string), string status = default(string));
/// <summary> /// <summary>
/// uploads an image /// uploads an image
/// </summary> /// </summary>
@ -188,7 +188,7 @@ namespace Org.OpenAPITools.Api
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param> /// <param name="file">file to upload (optional)</param>
/// <returns>ApiResponse</returns> /// <returns>ApiResponse</returns>
ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null); ApiResponse UploadFile (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
/// <summary> /// <summary>
/// uploads an image /// uploads an image
@ -201,7 +201,7 @@ namespace Org.OpenAPITools.Api
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param> /// <param name="file">file to upload (optional)</param>
/// <returns>ApiResponse of ApiResponse</returns> /// <returns>ApiResponse of ApiResponse</returns>
ApiResponse<ApiResponse> UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null); ApiResponse<ApiResponse> UploadFileWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
/// <summary> /// <summary>
/// uploads an image (required) /// uploads an image (required)
/// </summary> /// </summary>
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Api
/// <param name="requiredFile">file to upload</param> /// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <returns>ApiResponse</returns> /// <returns>ApiResponse</returns>
ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null); ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
/// <summary> /// <summary>
/// uploads an image (required) /// uploads an image (required)
@ -226,7 +226,7 @@ namespace Org.OpenAPITools.Api
/// <param name="requiredFile">file to upload</param> /// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <returns>ApiResponse of ApiResponse</returns> /// <returns>ApiResponse of ApiResponse</returns>
ApiResponse<ApiResponse> UploadFileWithRequiredFileWithHttpInfo (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null); ApiResponse<ApiResponse> UploadFileWithRequiredFileWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
#endregion Synchronous Operations #endregion Synchronous Operations
#region Asynchronous Operations #region Asynchronous Operations
/// <summary> /// <summary>
@ -260,7 +260,7 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">Pet id to delete</param> /// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param> /// <param name="apiKey"> (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task DeletePetAsync (long? petId, string apiKey = null); System.Threading.Tasks.Task DeletePetAsync (long petId, string apiKey = default(string));
/// <summary> /// <summary>
/// Deletes a pet /// Deletes a pet
@ -272,7 +272,7 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">Pet id to delete</param> /// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param> /// <param name="apiKey"> (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long? petId, string apiKey = null); System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long petId, string apiKey = default(string));
/// <summary> /// <summary>
/// Finds Pets by status /// Finds Pets by status
/// </summary> /// </summary>
@ -324,7 +324,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param> /// <param name="petId">ID of pet to return</param>
/// <returns>Task of Pet</returns> /// <returns>Task of Pet</returns>
System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long? petId); System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long petId);
/// <summary> /// <summary>
/// Find pet by ID /// Find pet by ID
@ -335,7 +335,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param> /// <param name="petId">ID of pet to return</param>
/// <returns>Task of ApiResponse (Pet)</returns> /// <returns>Task of ApiResponse (Pet)</returns>
System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long? petId); System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long petId);
/// <summary> /// <summary>
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
@ -368,7 +368,7 @@ namespace Org.OpenAPITools.Api
/// <param name="name">Updated name of the pet (optional)</param> /// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param> /// <param name="status">Updated status of the pet (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task UpdatePetWithFormAsync (long? petId, string name = null, string status = null); System.Threading.Tasks.Task UpdatePetWithFormAsync (long petId, string name = default(string), string status = default(string));
/// <summary> /// <summary>
/// Updates a pet in the store with form data /// Updates a pet in the store with form data
@ -381,7 +381,7 @@ namespace Org.OpenAPITools.Api
/// <param name="name">Updated name of the pet (optional)</param> /// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param> /// <param name="status">Updated status of the pet (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long? petId, string name = null, string status = null); System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long petId, string name = default(string), string status = default(string));
/// <summary> /// <summary>
/// uploads an image /// uploads an image
/// </summary> /// </summary>
@ -393,7 +393,7 @@ namespace Org.OpenAPITools.Api
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param> /// <param name="file">file to upload (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long? petId, string additionalMetadata = null, System.IO.Stream file = null); System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
/// <summary> /// <summary>
/// uploads an image /// uploads an image
@ -406,7 +406,7 @@ namespace Org.OpenAPITools.Api
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param> /// <param name="file">file to upload (optional)</param>
/// <returns>Task of ApiResponse (ApiResponse)</returns> /// <returns>Task of ApiResponse (ApiResponse)</returns>
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null); System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream));
/// <summary> /// <summary>
/// uploads an image (required) /// uploads an image (required)
/// </summary> /// </summary>
@ -418,7 +418,7 @@ namespace Org.OpenAPITools.Api
/// <param name="requiredFile">file to upload</param> /// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null); System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
/// <summary> /// <summary>
/// uploads an image (required) /// uploads an image (required)
@ -431,7 +431,7 @@ namespace Org.OpenAPITools.Api
/// <param name="requiredFile">file to upload</param> /// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <returns>Task of ApiResponse (ApiResponse)</returns> /// <returns>Task of ApiResponse (ApiResponse)</returns>
System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null); System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string));
#endregion Asynchronous Operations #endregion Asynchronous Operations
} }
@ -709,7 +709,7 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">Pet id to delete</param> /// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param> /// <param name="apiKey"> (optional)</param>
/// <returns></returns> /// <returns></returns>
public void DeletePet (long? petId, string apiKey = null) public void DeletePet (long petId, string apiKey = default(string))
{ {
DeletePetWithHttpInfo(petId, apiKey); DeletePetWithHttpInfo(petId, apiKey);
} }
@ -721,7 +721,7 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">Pet id to delete</param> /// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param> /// <param name="apiKey"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> DeletePetWithHttpInfo (long? petId, string apiKey = null) public ApiResponse<Object> DeletePetWithHttpInfo (long petId, string apiKey = default(string))
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
@ -782,7 +782,7 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">Pet id to delete</param> /// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param> /// <param name="apiKey"> (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task DeletePetAsync (long? petId, string apiKey = null) public async System.Threading.Tasks.Task DeletePetAsync (long petId, string apiKey = default(string))
{ {
await DeletePetAsyncWithHttpInfo(petId, apiKey); await DeletePetAsyncWithHttpInfo(petId, apiKey);
@ -795,7 +795,7 @@ namespace Org.OpenAPITools.Api
/// <param name="petId">Pet id to delete</param> /// <param name="petId">Pet id to delete</param>
/// <param name="apiKey"> (optional)</param> /// <param name="apiKey"> (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long? petId, string apiKey = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> DeletePetAsyncWithHttpInfo (long petId, string apiKey = default(string))
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
@ -1149,7 +1149,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param> /// <param name="petId">ID of pet to return</param>
/// <returns>Pet</returns> /// <returns>Pet</returns>
public Pet GetPetById (long? petId) public Pet GetPetById (long petId)
{ {
ApiResponse<Pet> localVarResponse = GetPetByIdWithHttpInfo(petId); ApiResponse<Pet> localVarResponse = GetPetByIdWithHttpInfo(petId);
return localVarResponse.Data; return localVarResponse.Data;
@ -1161,7 +1161,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param> /// <param name="petId">ID of pet to return</param>
/// <returns>ApiResponse of Pet</returns> /// <returns>ApiResponse of Pet</returns>
public ApiResponse< Pet > GetPetByIdWithHttpInfo (long? petId) public ApiResponse<Pet> GetPetByIdWithHttpInfo (long petId)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
@ -1221,7 +1221,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param> /// <param name="petId">ID of pet to return</param>
/// <returns>Task of Pet</returns> /// <returns>Task of Pet</returns>
public async System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long? petId) public async System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long petId)
{ {
ApiResponse<Pet> localVarResponse = await GetPetByIdAsyncWithHttpInfo(petId); ApiResponse<Pet> localVarResponse = await GetPetByIdAsyncWithHttpInfo(petId);
return localVarResponse.Data; return localVarResponse.Data;
@ -1234,7 +1234,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param> /// <param name="petId">ID of pet to return</param>
/// <returns>Task of ApiResponse (Pet)</returns> /// <returns>Task of ApiResponse (Pet)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long? petId) public async System.Threading.Tasks.Task<ApiResponse<Pet>> GetPetByIdAsyncWithHttpInfo (long petId)
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
@ -1455,7 +1455,7 @@ namespace Org.OpenAPITools.Api
/// <param name="name">Updated name of the pet (optional)</param> /// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param> /// <param name="status">Updated status of the pet (optional)</param>
/// <returns></returns> /// <returns></returns>
public void UpdatePetWithForm (long? petId, string name = null, string status = null) public void UpdatePetWithForm (long petId, string name = default(string), string status = default(string))
{ {
UpdatePetWithFormWithHttpInfo(petId, name, status); UpdatePetWithFormWithHttpInfo(petId, name, status);
} }
@ -1468,7 +1468,7 @@ namespace Org.OpenAPITools.Api
/// <param name="name">Updated name of the pet (optional)</param> /// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param> /// <param name="status">Updated status of the pet (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> UpdatePetWithFormWithHttpInfo (long? petId, string name = null, string status = null) public ApiResponse<Object> UpdatePetWithFormWithHttpInfo (long petId, string name = default(string), string status = default(string))
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
@ -1532,7 +1532,7 @@ namespace Org.OpenAPITools.Api
/// <param name="name">Updated name of the pet (optional)</param> /// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param> /// <param name="status">Updated status of the pet (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task UpdatePetWithFormAsync (long? petId, string name = null, string status = null) public async System.Threading.Tasks.Task UpdatePetWithFormAsync (long petId, string name = default(string), string status = default(string))
{ {
await UpdatePetWithFormAsyncWithHttpInfo(petId, name, status); await UpdatePetWithFormAsyncWithHttpInfo(petId, name, status);
@ -1546,7 +1546,7 @@ namespace Org.OpenAPITools.Api
/// <param name="name">Updated name of the pet (optional)</param> /// <param name="name">Updated name of the pet (optional)</param>
/// <param name="status">Updated status of the pet (optional)</param> /// <param name="status">Updated status of the pet (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long? petId, string name = null, string status = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetWithFormAsyncWithHttpInfo (long petId, string name = default(string), string status = default(string))
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
@ -1610,7 +1610,7 @@ namespace Org.OpenAPITools.Api
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param> /// <param name="file">file to upload (optional)</param>
/// <returns>ApiResponse</returns> /// <returns>ApiResponse</returns>
public ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) public ApiResponse UploadFile (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
{ {
ApiResponse<ApiResponse> localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); ApiResponse<ApiResponse> localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file);
return localVarResponse.Data; return localVarResponse.Data;
@ -1624,7 +1624,7 @@ namespace Org.OpenAPITools.Api
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param> /// <param name="file">file to upload (optional)</param>
/// <returns>ApiResponse of ApiResponse</returns> /// <returns>ApiResponse of ApiResponse</returns>
public ApiResponse< ApiResponse > UploadFileWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null) public ApiResponse<ApiResponse> UploadFileWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
@ -1689,7 +1689,7 @@ namespace Org.OpenAPITools.Api
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param> /// <param name="file">file to upload (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long? petId, string additionalMetadata = null, System.IO.Stream file = null) public async System.Threading.Tasks.Task<ApiResponse> UploadFileAsync (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
{ {
ApiResponse<ApiResponse> localVarResponse = await UploadFileAsyncWithHttpInfo(petId, additionalMetadata, file); ApiResponse<ApiResponse> localVarResponse = await UploadFileAsyncWithHttpInfo(petId, additionalMetadata, file);
return localVarResponse.Data; return localVarResponse.Data;
@ -1704,7 +1704,7 @@ namespace Org.OpenAPITools.Api
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <param name="file">file to upload (optional)</param> /// <param name="file">file to upload (optional)</param>
/// <returns>Task of ApiResponse (ApiResponse)</returns> /// <returns>Task of ApiResponse (ApiResponse)</returns>
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long? petId, string additionalMetadata = null, System.IO.Stream file = null) public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileAsyncWithHttpInfo (long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream))
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
@ -1769,7 +1769,7 @@ namespace Org.OpenAPITools.Api
/// <param name="requiredFile">file to upload</param> /// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <returns>ApiResponse</returns> /// <returns>ApiResponse</returns>
public ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) public ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
{ {
ApiResponse<ApiResponse> localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); ApiResponse<ApiResponse> localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata);
return localVarResponse.Data; return localVarResponse.Data;
@ -1783,7 +1783,7 @@ namespace Org.OpenAPITools.Api
/// <param name="requiredFile">file to upload</param> /// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <returns>ApiResponse of ApiResponse</returns> /// <returns>ApiResponse of ApiResponse</returns>
public ApiResponse< ApiResponse > UploadFileWithRequiredFileWithHttpInfo (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) public ApiResponse<ApiResponse> UploadFileWithRequiredFileWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)
@ -1851,7 +1851,7 @@ namespace Org.OpenAPITools.Api
/// <param name="requiredFile">file to upload</param> /// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) public async System.Threading.Tasks.Task<ApiResponse> UploadFileWithRequiredFileAsync (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
{ {
ApiResponse<ApiResponse> localVarResponse = await UploadFileWithRequiredFileAsyncWithHttpInfo(petId, requiredFile, additionalMetadata); ApiResponse<ApiResponse> localVarResponse = await UploadFileWithRequiredFileAsyncWithHttpInfo(petId, requiredFile, additionalMetadata);
return localVarResponse.Data; return localVarResponse.Data;
@ -1866,7 +1866,7 @@ namespace Org.OpenAPITools.Api
/// <param name="requiredFile">file to upload</param> /// <param name="requiredFile">file to upload</param>
/// <param name="additionalMetadata">Additional data to pass to server (optional)</param> /// <param name="additionalMetadata">Additional data to pass to server (optional)</param>
/// <returns>Task of ApiResponse (ApiResponse)</returns> /// <returns>Task of ApiResponse (ApiResponse)</returns>
public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) public async System.Threading.Tasks.Task<ApiResponse<ApiResponse>> UploadFileWithRequiredFileAsyncWithHttpInfo (long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string))
{ {
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId == null) if (petId == null)

View File

@ -52,8 +52,8 @@ namespace Org.OpenAPITools.Api
/// Returns a map of status codes to quantities /// Returns a map of status codes to quantities
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>Dictionary&lt;string, int?&gt;</returns> /// <returns>Dictionary&lt;string, int&gt;</returns>
Dictionary<string, int?> GetInventory (); Dictionary<string, int> GetInventory ();
/// <summary> /// <summary>
/// Returns pet inventories by status /// Returns pet inventories by status
@ -62,8 +62,8 @@ namespace Org.OpenAPITools.Api
/// Returns a map of status codes to quantities /// Returns a map of status codes to quantities
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>ApiResponse of Dictionary&lt;string, int?&gt;</returns> /// <returns>ApiResponse of Dictionary&lt;string, int&gt;</returns>
ApiResponse<Dictionary<string, int?>> GetInventoryWithHttpInfo (); ApiResponse<Dictionary<string, int>> GetInventoryWithHttpInfo ();
/// <summary> /// <summary>
/// Find purchase order by ID /// Find purchase order by ID
/// </summary> /// </summary>
@ -73,7 +73,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param> /// <param name="orderId">ID of pet that needs to be fetched</param>
/// <returns>Order</returns> /// <returns>Order</returns>
Order GetOrderById (long? orderId); Order GetOrderById (long orderId);
/// <summary> /// <summary>
/// Find purchase order by ID /// Find purchase order by ID
@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param> /// <param name="orderId">ID of pet that needs to be fetched</param>
/// <returns>ApiResponse of Order</returns> /// <returns>ApiResponse of Order</returns>
ApiResponse<Order> GetOrderByIdWithHttpInfo (long? orderId); ApiResponse<Order> GetOrderByIdWithHttpInfo (long orderId);
/// <summary> /// <summary>
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
@ -136,8 +136,8 @@ namespace Org.OpenAPITools.Api
/// Returns a map of status codes to quantities /// Returns a map of status codes to quantities
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>Task of Dictionary&lt;string, int?&gt;</returns> /// <returns>Task of Dictionary&lt;string, int&gt;</returns>
System.Threading.Tasks.Task<Dictionary<string, int?>> GetInventoryAsync (); System.Threading.Tasks.Task<Dictionary<string, int>> GetInventoryAsync ();
/// <summary> /// <summary>
/// Returns pet inventories by status /// Returns pet inventories by status
@ -146,8 +146,8 @@ namespace Org.OpenAPITools.Api
/// Returns a map of status codes to quantities /// Returns a map of status codes to quantities
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>Task of ApiResponse (Dictionary&lt;string, int?&gt;)</returns> /// <returns>Task of ApiResponse (Dictionary&lt;string, int&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo (); System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo ();
/// <summary> /// <summary>
/// Find purchase order by ID /// Find purchase order by ID
/// </summary> /// </summary>
@ -157,7 +157,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param> /// <param name="orderId">ID of pet that needs to be fetched</param>
/// <returns>Task of Order</returns> /// <returns>Task of Order</returns>
System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long? orderId); System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long orderId);
/// <summary> /// <summary>
/// Find purchase order by ID /// Find purchase order by ID
@ -168,7 +168,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param> /// <param name="orderId">ID of pet that needs to be fetched</param>
/// <returns>Task of ApiResponse (Order)</returns> /// <returns>Task of ApiResponse (Order)</returns>
System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long? orderId); System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long orderId);
/// <summary> /// <summary>
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
@ -434,10 +434,10 @@ namespace Org.OpenAPITools.Api
/// Returns pet inventories by status Returns a map of status codes to quantities /// Returns pet inventories by status Returns a map of status codes to quantities
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>Dictionary&lt;string, int?&gt;</returns> /// <returns>Dictionary&lt;string, int&gt;</returns>
public Dictionary<string, int?> GetInventory () public Dictionary<string, int> GetInventory ()
{ {
ApiResponse<Dictionary<string, int?>> localVarResponse = GetInventoryWithHttpInfo(); ApiResponse<Dictionary<string, int>> localVarResponse = GetInventoryWithHttpInfo();
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -445,8 +445,8 @@ namespace Org.OpenAPITools.Api
/// Returns pet inventories by status Returns a map of status codes to quantities /// Returns pet inventories by status Returns a map of status codes to quantities
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>ApiResponse of Dictionary&lt;string, int?&gt;</returns> /// <returns>ApiResponse of Dictionary&lt;string, int&gt;</returns>
public ApiResponse< Dictionary<string, int?> > GetInventoryWithHttpInfo () public ApiResponse<Dictionary<string, int>> GetInventoryWithHttpInfo ()
{ {
var localVarPath = "/store/inventory"; var localVarPath = "/store/inventory";
@ -490,19 +490,19 @@ namespace Org.OpenAPITools.Api
if (exception != null) throw exception; if (exception != null) throw exception;
} }
return new ApiResponse<Dictionary<string, int?>>(localVarStatusCode, return new ApiResponse<Dictionary<string, int>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Dictionary<string, int?>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>))); (Dictionary<string, int>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int>)));
} }
/// <summary> /// <summary>
/// Returns pet inventories by status Returns a map of status codes to quantities /// Returns pet inventories by status Returns a map of status codes to quantities
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>Task of Dictionary&lt;string, int?&gt;</returns> /// <returns>Task of Dictionary&lt;string, int&gt;</returns>
public async System.Threading.Tasks.Task<Dictionary<string, int?>> GetInventoryAsync () public async System.Threading.Tasks.Task<Dictionary<string, int>> GetInventoryAsync ()
{ {
ApiResponse<Dictionary<string, int?>> localVarResponse = await GetInventoryAsyncWithHttpInfo(); ApiResponse<Dictionary<string, int>> localVarResponse = await GetInventoryAsyncWithHttpInfo();
return localVarResponse.Data; return localVarResponse.Data;
} }
@ -511,8 +511,8 @@ namespace Org.OpenAPITools.Api
/// Returns pet inventories by status Returns a map of status codes to quantities /// Returns pet inventories by status Returns a map of status codes to quantities
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>Task of ApiResponse (Dictionary&lt;string, int?&gt;)</returns> /// <returns>Task of ApiResponse (Dictionary&lt;string, int&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int?>>> GetInventoryAsyncWithHttpInfo () public async System.Threading.Tasks.Task<ApiResponse<Dictionary<string, int>>> GetInventoryAsyncWithHttpInfo ()
{ {
var localVarPath = "/store/inventory"; var localVarPath = "/store/inventory";
@ -556,9 +556,9 @@ namespace Org.OpenAPITools.Api
if (exception != null) throw exception; if (exception != null) throw exception;
} }
return new ApiResponse<Dictionary<string, int?>>(localVarStatusCode, return new ApiResponse<Dictionary<string, int>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Dictionary<string, int?>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int?>))); (Dictionary<string, int>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, int>)));
} }
/// <summary> /// <summary>
@ -567,7 +567,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param> /// <param name="orderId">ID of pet that needs to be fetched</param>
/// <returns>Order</returns> /// <returns>Order</returns>
public Order GetOrderById (long? orderId) public Order GetOrderById (long orderId)
{ {
ApiResponse<Order> localVarResponse = GetOrderByIdWithHttpInfo(orderId); ApiResponse<Order> localVarResponse = GetOrderByIdWithHttpInfo(orderId);
return localVarResponse.Data; return localVarResponse.Data;
@ -579,7 +579,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param> /// <param name="orderId">ID of pet that needs to be fetched</param>
/// <returns>ApiResponse of Order</returns> /// <returns>ApiResponse of Order</returns>
public ApiResponse< Order > GetOrderByIdWithHttpInfo (long? orderId) public ApiResponse<Order> GetOrderByIdWithHttpInfo (long orderId)
{ {
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId == null) if (orderId == null)
@ -634,7 +634,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param> /// <param name="orderId">ID of pet that needs to be fetched</param>
/// <returns>Task of Order</returns> /// <returns>Task of Order</returns>
public async System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long? orderId) public async System.Threading.Tasks.Task<Order> GetOrderByIdAsync (long orderId)
{ {
ApiResponse<Order> localVarResponse = await GetOrderByIdAsyncWithHttpInfo(orderId); ApiResponse<Order> localVarResponse = await GetOrderByIdAsyncWithHttpInfo(orderId);
return localVarResponse.Data; return localVarResponse.Data;
@ -647,7 +647,7 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="orderId">ID of pet that needs to be fetched</param> /// <param name="orderId">ID of pet that needs to be fetched</param>
/// <returns>Task of ApiResponse (Order)</returns> /// <returns>Task of ApiResponse (Order)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long? orderId) public async System.Threading.Tasks.Task<ApiResponse<Order>> GetOrderByIdAsyncWithHttpInfo (long orderId)
{ {
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId == null) if (orderId == null)

View File

@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model
/// AdditionalPropertiesBoolean /// AdditionalPropertiesBoolean
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class AdditionalPropertiesBoolean : Dictionary<String, bool?>, IEquatable<AdditionalPropertiesBoolean>, IValidatableObject public partial class AdditionalPropertiesBoolean : Dictionary<String, bool>, IEquatable<AdditionalPropertiesBoolean>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="AdditionalPropertiesBoolean" /> class. /// Initializes a new instance of the <see cref="AdditionalPropertiesBoolean" /> class.

View File

@ -44,7 +44,7 @@ namespace Org.OpenAPITools.Model
/// <param name="anytype1">anytype1.</param> /// <param name="anytype1">anytype1.</param>
/// <param name="anytype2">anytype2.</param> /// <param name="anytype2">anytype2.</param>
/// <param name="anytype3">anytype3.</param> /// <param name="anytype3">anytype3.</param>
public AdditionalPropertiesClass(Dictionary<string, string> mapString = default(Dictionary<string, string>), Dictionary<string, decimal?> mapNumber = default(Dictionary<string, decimal?>), Dictionary<string, int?> mapInteger = default(Dictionary<string, int?>), Dictionary<string, bool?> mapBoolean = default(Dictionary<string, bool?>), Dictionary<string, List<int?>> mapArrayInteger = default(Dictionary<string, List<int?>>), Dictionary<string, List<Object>> mapArrayAnytype = default(Dictionary<string, List<Object>>), Dictionary<string, Dictionary<string, string>> mapMapString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, Dictionary<string, Object>> mapMapAnytype = default(Dictionary<string, Dictionary<string, Object>>), Object anytype1 = default(Object), Object anytype2 = default(Object), Object anytype3 = default(Object)) public AdditionalPropertiesClass(Dictionary<string, string> mapString = default(Dictionary<string, string>), Dictionary<string, decimal> mapNumber = default(Dictionary<string, decimal>), Dictionary<string, int> mapInteger = default(Dictionary<string, int>), Dictionary<string, bool> mapBoolean = default(Dictionary<string, bool>), Dictionary<string, List<int>> mapArrayInteger = default(Dictionary<string, List<int>>), Dictionary<string, List<Object>> mapArrayAnytype = default(Dictionary<string, List<Object>>), Dictionary<string, Dictionary<string, string>> mapMapString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, Dictionary<string, Object>> mapMapAnytype = default(Dictionary<string, Dictionary<string, Object>>), Object anytype1 = default(Object), Object anytype2 = default(Object), Object anytype3 = default(Object))
{ {
this.MapString = mapString; this.MapString = mapString;
this.MapNumber = mapNumber; this.MapNumber = mapNumber;
@ -69,25 +69,25 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets MapNumber /// Gets or Sets MapNumber
/// </summary> /// </summary>
[DataMember(Name="map_number", EmitDefaultValue=false)] [DataMember(Name="map_number", EmitDefaultValue=false)]
public Dictionary<string, decimal?> MapNumber { get; set; } public Dictionary<string, decimal> MapNumber { get; set; }
/// <summary> /// <summary>
/// Gets or Sets MapInteger /// Gets or Sets MapInteger
/// </summary> /// </summary>
[DataMember(Name="map_integer", EmitDefaultValue=false)] [DataMember(Name="map_integer", EmitDefaultValue=false)]
public Dictionary<string, int?> MapInteger { get; set; } public Dictionary<string, int> MapInteger { get; set; }
/// <summary> /// <summary>
/// Gets or Sets MapBoolean /// Gets or Sets MapBoolean
/// </summary> /// </summary>
[DataMember(Name="map_boolean", EmitDefaultValue=false)] [DataMember(Name="map_boolean", EmitDefaultValue=false)]
public Dictionary<string, bool?> MapBoolean { get; set; } public Dictionary<string, bool> MapBoolean { get; set; }
/// <summary> /// <summary>
/// Gets or Sets MapArrayInteger /// Gets or Sets MapArrayInteger
/// </summary> /// </summary>
[DataMember(Name="map_array_integer", EmitDefaultValue=false)] [DataMember(Name="map_array_integer", EmitDefaultValue=false)]
public Dictionary<string, List<int?>> MapArrayInteger { get; set; } public Dictionary<string, List<int>> MapArrayInteger { get; set; }
/// <summary> /// <summary>
/// Gets or Sets MapArrayAnytype /// Gets or Sets MapArrayAnytype

View File

@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model
/// AdditionalPropertiesInteger /// AdditionalPropertiesInteger
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class AdditionalPropertiesInteger : Dictionary<String, int?>, IEquatable<AdditionalPropertiesInteger>, IValidatableObject public partial class AdditionalPropertiesInteger : Dictionary<String, int>, IEquatable<AdditionalPropertiesInteger>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="AdditionalPropertiesInteger" /> class. /// Initializes a new instance of the <see cref="AdditionalPropertiesInteger" /> class.

View File

@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model
/// AdditionalPropertiesNumber /// AdditionalPropertiesNumber
/// </summary> /// </summary>
[DataContract] [DataContract]
public partial class AdditionalPropertiesNumber : Dictionary<String, decimal?>, IEquatable<AdditionalPropertiesNumber>, IValidatableObject public partial class AdditionalPropertiesNumber : Dictionary<String, decimal>, IEquatable<AdditionalPropertiesNumber>, IValidatableObject
{ {
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="AdditionalPropertiesNumber" /> class. /// Initializes a new instance of the <see cref="AdditionalPropertiesNumber" /> class.

View File

@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="code">code.</param> /// <param name="code">code.</param>
/// <param name="type">type.</param> /// <param name="type">type.</param>
/// <param name="message">message.</param> /// <param name="message">message.</param>
public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) public ApiResponse(int code = default(int), string type = default(string), string message = default(string))
{ {
this.Code = code; this.Code = code;
this.Type = type; this.Type = type;
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Code /// Gets or Sets Code
/// </summary> /// </summary>
[DataMember(Name="code", EmitDefaultValue=false)] [DataMember(Name="code", EmitDefaultValue=false)]
public int? Code { get; set; } public int Code { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Type /// Gets or Sets Type

View File

@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
/// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class. /// Initializes a new instance of the <see cref="ArrayOfArrayOfNumberOnly" /> class.
/// </summary> /// </summary>
/// <param name="arrayArrayNumber">arrayArrayNumber.</param> /// <param name="arrayArrayNumber">arrayArrayNumber.</param>
public ArrayOfArrayOfNumberOnly(List<List<decimal?>> arrayArrayNumber = default(List<List<decimal?>>)) public ArrayOfArrayOfNumberOnly(List<List<decimal>> arrayArrayNumber = default(List<List<decimal>>))
{ {
this.ArrayArrayNumber = arrayArrayNumber; this.ArrayArrayNumber = arrayArrayNumber;
} }
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets ArrayArrayNumber /// Gets or Sets ArrayArrayNumber
/// </summary> /// </summary>
[DataMember(Name="ArrayArrayNumber", EmitDefaultValue=false)] [DataMember(Name="ArrayArrayNumber", EmitDefaultValue=false)]
public List<List<decimal?>> ArrayArrayNumber { get; set; } public List<List<decimal>> ArrayArrayNumber { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
/// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class. /// Initializes a new instance of the <see cref="ArrayOfNumberOnly" /> class.
/// </summary> /// </summary>
/// <param name="arrayNumber">arrayNumber.</param> /// <param name="arrayNumber">arrayNumber.</param>
public ArrayOfNumberOnly(List<decimal?> arrayNumber = default(List<decimal?>)) public ArrayOfNumberOnly(List<decimal> arrayNumber = default(List<decimal>))
{ {
this.ArrayNumber = arrayNumber; this.ArrayNumber = arrayNumber;
} }
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets ArrayNumber /// Gets or Sets ArrayNumber
/// </summary> /// </summary>
[DataMember(Name="ArrayNumber", EmitDefaultValue=false)] [DataMember(Name="ArrayNumber", EmitDefaultValue=false)]
public List<decimal?> ArrayNumber { get; set; } public List<decimal> ArrayNumber { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="arrayOfString">arrayOfString.</param> /// <param name="arrayOfString">arrayOfString.</param>
/// <param name="arrayArrayOfInteger">arrayArrayOfInteger.</param> /// <param name="arrayArrayOfInteger">arrayArrayOfInteger.</param>
/// <param name="arrayArrayOfModel">arrayArrayOfModel.</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>>)) 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.ArrayOfString = arrayOfString;
this.ArrayArrayOfInteger = arrayArrayOfInteger; this.ArrayArrayOfInteger = arrayArrayOfInteger;
@ -53,7 +53,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets ArrayArrayOfInteger /// Gets or Sets ArrayArrayOfInteger
/// </summary> /// </summary>
[DataMember(Name="array_array_of_integer", EmitDefaultValue=false)] [DataMember(Name="array_array_of_integer", EmitDefaultValue=false)]
public List<List<long?>> ArrayArrayOfInteger { get; set; } public List<List<long>> ArrayArrayOfInteger { get; set; }
/// <summary> /// <summary>
/// Gets or Sets ArrayArrayOfModel /// Gets or Sets ArrayArrayOfModel

View File

@ -39,7 +39,7 @@ namespace Org.OpenAPITools.Model
/// Initializes a new instance of the <see cref="Cat" /> class. /// Initializes a new instance of the <see cref="Cat" /> class.
/// </summary> /// </summary>
/// <param name="declawed">declawed.</param> /// <param name="declawed">declawed.</param>
public Cat(bool? declawed = default(bool?), string className = default(string), string color = "red") : base(className, color) public Cat(bool declawed = default(bool), string className = default(string), string color = "red") : base(className, color)
{ {
this.Declawed = declawed; this.Declawed = declawed;
} }
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Declawed /// Gets or Sets Declawed
/// </summary> /// </summary>
[DataMember(Name="declawed", EmitDefaultValue=false)] [DataMember(Name="declawed", EmitDefaultValue=false)]
public bool? Declawed { get; set; } public bool Declawed { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
/// Initializes a new instance of the <see cref="CatAllOf" /> class. /// Initializes a new instance of the <see cref="CatAllOf" /> class.
/// </summary> /// </summary>
/// <param name="declawed">declawed.</param> /// <param name="declawed">declawed.</param>
public CatAllOf(bool? declawed = default(bool?)) public CatAllOf(bool declawed = default(bool))
{ {
this.Declawed = declawed; this.Declawed = declawed;
} }
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Declawed /// Gets or Sets Declawed
/// </summary> /// </summary>
[DataMember(Name="declawed", EmitDefaultValue=false)] [DataMember(Name="declawed", EmitDefaultValue=false)]
public bool? Declawed { get; set; } public bool Declawed { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Model
/// </summary> /// </summary>
/// <param name="id">id.</param> /// <param name="id">id.</param>
/// <param name="name">name (required) (default to &quot;default-name&quot;).</param> /// <param name="name">name (required) (default to &quot;default-name&quot;).</param>
public Category(long? id = default(long?), string name = "default-name") public Category(long id = default(long), string name = "default-name")
{ {
// to ensure "name" is required (not null) // to ensure "name" is required (not null)
if (name == null) if (name == null)
@ -59,7 +59,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Id /// Gets or Sets Id
/// </summary> /// </summary>
[DataMember(Name="id", EmitDefaultValue=false)] [DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; } public long Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Name /// Gets or Sets Name

View File

@ -51,7 +51,7 @@ namespace Org.OpenAPITools.Model
/// <param name="dateTime">dateTime.</param> /// <param name="dateTime">dateTime.</param>
/// <param name="uuid">uuid.</param> /// <param name="uuid">uuid.</param>
/// <param name="password">password (required).</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[]), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string)) public FormatTest(int integer = default(int), int int32 = default(int), long int64 = default(long), decimal number = default(decimal), float _float = default(float), double _double = default(double), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string))
{ {
// to ensure "number" is required (not null) // to ensure "number" is required (not null)
if (number == null) if (number == null)
@ -108,37 +108,37 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Integer /// Gets or Sets Integer
/// </summary> /// </summary>
[DataMember(Name="integer", EmitDefaultValue=false)] [DataMember(Name="integer", EmitDefaultValue=false)]
public int? Integer { get; set; } public int Integer { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Int32 /// Gets or Sets Int32
/// </summary> /// </summary>
[DataMember(Name="int32", EmitDefaultValue=false)] [DataMember(Name="int32", EmitDefaultValue=false)]
public int? Int32 { get; set; } public int Int32 { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Int64 /// Gets or Sets Int64
/// </summary> /// </summary>
[DataMember(Name="int64", EmitDefaultValue=false)] [DataMember(Name="int64", EmitDefaultValue=false)]
public long? Int64 { get; set; } public long Int64 { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Number /// Gets or Sets Number
/// </summary> /// </summary>
[DataMember(Name="number", EmitDefaultValue=false)] [DataMember(Name="number", EmitDefaultValue=false)]
public decimal? Number { get; set; } public decimal Number { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Float /// Gets or Sets Float
/// </summary> /// </summary>
[DataMember(Name="float", EmitDefaultValue=false)] [DataMember(Name="float", EmitDefaultValue=false)]
public float? Float { get; set; } public float Float { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Double /// Gets or Sets Double
/// </summary> /// </summary>
[DataMember(Name="double", EmitDefaultValue=false)] [DataMember(Name="double", EmitDefaultValue=false)]
public double? Double { get; set; } public double Double { get; set; }
/// <summary> /// <summary>
/// Gets or Sets String /// Gets or Sets String
@ -163,19 +163,19 @@ namespace Org.OpenAPITools.Model
/// </summary> /// </summary>
[DataMember(Name="date", EmitDefaultValue=false)] [DataMember(Name="date", EmitDefaultValue=false)]
[JsonConverter(typeof(OpenAPIDateConverter))] [JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime? Date { get; set; } public DateTime Date { get; set; }
/// <summary> /// <summary>
/// Gets or Sets DateTime /// Gets or Sets DateTime
/// </summary> /// </summary>
[DataMember(Name="dateTime", EmitDefaultValue=false)] [DataMember(Name="dateTime", EmitDefaultValue=false)]
public DateTime? DateTime { get; set; } public DateTime DateTime { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Uuid /// Gets or Sets Uuid
/// </summary> /// </summary>
[DataMember(Name="uuid", EmitDefaultValue=false)] [DataMember(Name="uuid", EmitDefaultValue=false)]
public Guid? Uuid { get; set; } public Guid Uuid { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Password /// Gets or Sets Password
@ -351,62 +351,62 @@ namespace Org.OpenAPITools.Model
/// <returns>Validation Result</returns> /// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{ {
// Integer (int?) maximum // Integer (int) maximum
if(this.Integer > (int?)100) if(this.Integer > (int)100)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" });
} }
// Integer (int?) minimum // Integer (int) minimum
if(this.Integer < (int?)10) if(this.Integer < (int)10)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" });
} }
// Int32 (int?) maximum // Int32 (int) maximum
if(this.Int32 > (int?)200) if(this.Int32 > (int)200)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" });
} }
// Int32 (int?) minimum // Int32 (int) minimum
if(this.Int32 < (int?)20) if(this.Int32 < (int)20)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" });
} }
// Number (decimal?) maximum // Number (decimal) maximum
if(this.Number > (decimal?)543.2) if(this.Number > (decimal)543.2)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value less than or equal to 543.2.", new [] { "Number" });
} }
// Number (decimal?) minimum // Number (decimal) minimum
if(this.Number < (decimal?)32.1) if(this.Number < (decimal)32.1)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" });
} }
// Float (float?) maximum // Float (float) maximum
if(this.Float > (float?)987.6) if(this.Float > (float)987.6)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" });
} }
// Float (float?) minimum // Float (float) minimum
if(this.Float < (float?)54.3) if(this.Float < (float)54.3)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" });
} }
// Double (double?) maximum // Double (double) maximum
if(this.Double > (double?)123.4) if(this.Double > (double)123.4)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" });
} }
// Double (double?) minimum // Double (double) minimum
if(this.Double < (double?)67.8) if(this.Double < (double)67.8)
{ {
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" });
} }

View File

@ -63,7 +63,7 @@ namespace Org.OpenAPITools.Model
/// <param name="mapOfEnumString">mapOfEnumString.</param> /// <param name="mapOfEnumString">mapOfEnumString.</param>
/// <param name="directMap">directMap.</param> /// <param name="directMap">directMap.</param>
/// <param name="indirectMap">indirectMap.</param> /// <param name="indirectMap">indirectMap.</param>
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>), Dictionary<string, bool?> directMap = default(Dictionary<string, bool?>), Dictionary<string, bool?> indirectMap = default(Dictionary<string, bool?>)) public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>), Dictionary<string, bool> directMap = default(Dictionary<string, bool>), Dictionary<string, bool> indirectMap = default(Dictionary<string, bool>))
{ {
this.MapMapOfString = mapMapOfString; this.MapMapOfString = mapMapOfString;
this.MapOfEnumString = mapOfEnumString; this.MapOfEnumString = mapOfEnumString;
@ -82,13 +82,13 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets DirectMap /// Gets or Sets DirectMap
/// </summary> /// </summary>
[DataMember(Name="direct_map", EmitDefaultValue=false)] [DataMember(Name="direct_map", EmitDefaultValue=false)]
public Dictionary<string, bool?> DirectMap { get; set; } public Dictionary<string, bool> DirectMap { get; set; }
/// <summary> /// <summary>
/// Gets or Sets IndirectMap /// Gets or Sets IndirectMap
/// </summary> /// </summary>
[DataMember(Name="indirect_map", EmitDefaultValue=false)] [DataMember(Name="indirect_map", EmitDefaultValue=false)]
public Dictionary<string, bool?> IndirectMap { get; set; } public Dictionary<string, bool> IndirectMap { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="uuid">uuid.</param> /// <param name="uuid">uuid.</param>
/// <param name="dateTime">dateTime.</param> /// <param name="dateTime">dateTime.</param>
/// <param name="map">map.</param> /// <param name="map">map.</param>
public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary<string, Animal> map = default(Dictionary<string, Animal>)) public MixedPropertiesAndAdditionalPropertiesClass(Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary<string, Animal> map = default(Dictionary<string, Animal>))
{ {
this.Uuid = uuid; this.Uuid = uuid;
this.DateTime = dateTime; this.DateTime = dateTime;
@ -47,13 +47,13 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Uuid /// Gets or Sets Uuid
/// </summary> /// </summary>
[DataMember(Name="uuid", EmitDefaultValue=false)] [DataMember(Name="uuid", EmitDefaultValue=false)]
public Guid? Uuid { get; set; } public Guid Uuid { get; set; }
/// <summary> /// <summary>
/// Gets or Sets DateTime /// Gets or Sets DateTime
/// </summary> /// </summary>
[DataMember(Name="dateTime", EmitDefaultValue=false)] [DataMember(Name="dateTime", EmitDefaultValue=false)]
public DateTime? DateTime { get; set; } public DateTime DateTime { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Map /// Gets or Sets Map

View File

@ -35,7 +35,7 @@ namespace Org.OpenAPITools.Model
/// </summary> /// </summary>
/// <param name="name">name.</param> /// <param name="name">name.</param>
/// <param name="_class">_class.</param> /// <param name="_class">_class.</param>
public Model200Response(int? name = default(int?), string _class = default(string)) public Model200Response(int name = default(int), string _class = default(string))
{ {
this.Name = name; this.Name = name;
this.Class = _class; this.Class = _class;
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Name /// Gets or Sets Name
/// </summary> /// </summary>
[DataMember(Name="name", EmitDefaultValue=false)] [DataMember(Name="name", EmitDefaultValue=false)]
public int? Name { get; set; } public int Name { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Class /// Gets or Sets Class

View File

@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Model
/// </summary> /// </summary>
/// <param name="name">name (required).</param> /// <param name="name">name (required).</param>
/// <param name="property">property.</param> /// <param name="property">property.</param>
public Name(int? name = default(int?), string property = default(string)) public Name(int name = default(int), string property = default(string))
{ {
// to ensure "name" is required (not null) // to ensure "name" is required (not null)
if (name == null) if (name == null)
@ -59,13 +59,13 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets _Name /// Gets or Sets _Name
/// </summary> /// </summary>
[DataMember(Name="name", EmitDefaultValue=false)] [DataMember(Name="name", EmitDefaultValue=false)]
public int? _Name { get; set; } public int _Name { get; set; }
/// <summary> /// <summary>
/// Gets or Sets SnakeCase /// Gets or Sets SnakeCase
/// </summary> /// </summary>
[DataMember(Name="snake_case", EmitDefaultValue=false)] [DataMember(Name="snake_case", EmitDefaultValue=false)]
public int? SnakeCase { get; private set; } public int SnakeCase { get; private set; }
/// <summary> /// <summary>
/// Gets or Sets Property /// Gets or Sets Property
@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets _123Number /// Gets or Sets _123Number
/// </summary> /// </summary>
[DataMember(Name="123Number", EmitDefaultValue=false)] [DataMember(Name="123Number", EmitDefaultValue=false)]
public int? _123Number { get; private set; } public int _123Number { get; private set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
/// Initializes a new instance of the <see cref="NumberOnly" /> class. /// Initializes a new instance of the <see cref="NumberOnly" /> class.
/// </summary> /// </summary>
/// <param name="justNumber">justNumber.</param> /// <param name="justNumber">justNumber.</param>
public NumberOnly(decimal? justNumber = default(decimal?)) public NumberOnly(decimal justNumber = default(decimal))
{ {
this.JustNumber = justNumber; this.JustNumber = justNumber;
} }
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets JustNumber /// Gets or Sets JustNumber
/// </summary> /// </summary>
[DataMember(Name="JustNumber", EmitDefaultValue=false)] [DataMember(Name="JustNumber", EmitDefaultValue=false)]
public decimal? JustNumber { get; set; } public decimal JustNumber { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -72,7 +72,7 @@ namespace Org.OpenAPITools.Model
/// <param name="shipDate">shipDate.</param> /// <param name="shipDate">shipDate.</param>
/// <param name="status">Order Status.</param> /// <param name="status">Order Status.</param>
/// <param name="complete">complete (default to false).</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) 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.Id = id;
this.PetId = petId; this.PetId = petId;
@ -94,32 +94,32 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Id /// Gets or Sets Id
/// </summary> /// </summary>
[DataMember(Name="id", EmitDefaultValue=false)] [DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; } public long Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PetId /// Gets or Sets PetId
/// </summary> /// </summary>
[DataMember(Name="petId", EmitDefaultValue=false)] [DataMember(Name="petId", EmitDefaultValue=false)]
public long? PetId { get; set; } public long PetId { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Quantity /// Gets or Sets Quantity
/// </summary> /// </summary>
[DataMember(Name="quantity", EmitDefaultValue=false)] [DataMember(Name="quantity", EmitDefaultValue=false)]
public int? Quantity { get; set; } public int Quantity { get; set; }
/// <summary> /// <summary>
/// Gets or Sets ShipDate /// Gets or Sets ShipDate
/// </summary> /// </summary>
[DataMember(Name="shipDate", EmitDefaultValue=false)] [DataMember(Name="shipDate", EmitDefaultValue=false)]
public DateTime? ShipDate { get; set; } public DateTime ShipDate { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Complete /// Gets or Sets Complete
/// </summary> /// </summary>
[DataMember(Name="complete", EmitDefaultValue=false)] [DataMember(Name="complete", EmitDefaultValue=false)]
public bool? Complete { get; set; } public bool Complete { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -36,7 +36,7 @@ namespace Org.OpenAPITools.Model
/// <param name="myNumber">myNumber.</param> /// <param name="myNumber">myNumber.</param>
/// <param name="myString">myString.</param> /// <param name="myString">myString.</param>
/// <param name="myBoolean">myBoolean.</param> /// <param name="myBoolean">myBoolean.</param>
public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool))
{ {
this.MyNumber = myNumber; this.MyNumber = myNumber;
this.MyString = myString; this.MyString = myString;
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets MyNumber /// Gets or Sets MyNumber
/// </summary> /// </summary>
[DataMember(Name="my_number", EmitDefaultValue=false)] [DataMember(Name="my_number", EmitDefaultValue=false)]
public decimal? MyNumber { get; set; } public decimal MyNumber { get; set; }
/// <summary> /// <summary>
/// Gets or Sets MyString /// Gets or Sets MyString
@ -59,7 +59,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets MyBoolean /// Gets or Sets MyBoolean
/// </summary> /// </summary>
[DataMember(Name="my_boolean", EmitDefaultValue=false)] [DataMember(Name="my_boolean", EmitDefaultValue=false)]
public bool? MyBoolean { get; set; } public bool MyBoolean { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
/// <param name="photoUrls">photoUrls (required).</param> /// <param name="photoUrls">photoUrls (required).</param>
/// <param name="tags">tags.</param> /// <param name="tags">tags.</param>
/// <param name="status">pet status in the store.</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?)) 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) // to ensure "name" is required (not null)
if (name == null) if (name == null)
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Id /// Gets or Sets Id
/// </summary> /// </summary>
[DataMember(Name="id", EmitDefaultValue=false)] [DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; } public long Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Category /// Gets or Sets Category

View File

@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
/// Initializes a new instance of the <see cref="Return" /> class. /// Initializes a new instance of the <see cref="Return" /> class.
/// </summary> /// </summary>
/// <param name="_return">_return.</param> /// <param name="_return">_return.</param>
public Return(int? _return = default(int?)) public Return(int _return = default(int))
{ {
this._Return = _return; this._Return = _return;
} }
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets _Return /// Gets or Sets _Return
/// </summary> /// </summary>
[DataMember(Name="return", EmitDefaultValue=false)] [DataMember(Name="return", EmitDefaultValue=false)]
public int? _Return { get; set; } public int _Return { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -34,7 +34,7 @@ namespace Org.OpenAPITools.Model
/// Initializes a new instance of the <see cref="SpecialModelName" /> class. /// Initializes a new instance of the <see cref="SpecialModelName" /> class.
/// </summary> /// </summary>
/// <param name="specialPropertyName">specialPropertyName.</param> /// <param name="specialPropertyName">specialPropertyName.</param>
public SpecialModelName(long? specialPropertyName = default(long?)) public SpecialModelName(long specialPropertyName = default(long))
{ {
this.SpecialPropertyName = specialPropertyName; this.SpecialPropertyName = specialPropertyName;
} }
@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets SpecialPropertyName /// Gets or Sets SpecialPropertyName
/// </summary> /// </summary>
[DataMember(Name="$special[property.name]", EmitDefaultValue=false)] [DataMember(Name="$special[property.name]", EmitDefaultValue=false)]
public long? SpecialPropertyName { get; set; } public long SpecialPropertyName { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -35,7 +35,7 @@ namespace Org.OpenAPITools.Model
/// </summary> /// </summary>
/// <param name="id">id.</param> /// <param name="id">id.</param>
/// <param name="name">name.</param> /// <param name="name">name.</param>
public Tag(long? id = default(long?), string name = default(string)) public Tag(long id = default(long), string name = default(string))
{ {
this.Id = id; this.Id = id;
this.Name = name; this.Name = name;
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Id /// Gets or Sets Id
/// </summary> /// </summary>
[DataMember(Name="id", EmitDefaultValue=false)] [DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; } public long Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Name /// Gets or Sets Name

View File

@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
/// <param name="integerItem">integerItem (required).</param> /// <param name="integerItem">integerItem (required).</param>
/// <param name="boolItem">boolItem (required) (default to true).</param> /// <param name="boolItem">boolItem (required) (default to true).</param>
/// <param name="arrayItem">arrayItem (required).</param> /// <param name="arrayItem">arrayItem (required).</param>
public TypeHolderDefault(string stringItem = "what", decimal? numberItem = default(decimal?), int? integerItem = default(int?), bool? boolItem = true, List<int?> arrayItem = default(List<int?>)) public TypeHolderDefault(string stringItem = "what", decimal numberItem = default(decimal), int integerItem = default(int), bool boolItem = true, List<int> arrayItem = default(List<int>))
{ {
// to ensure "stringItem" is required (not null) // to ensure "stringItem" is required (not null)
if (stringItem == null) if (stringItem == null)
@ -107,25 +107,25 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets NumberItem /// Gets or Sets NumberItem
/// </summary> /// </summary>
[DataMember(Name="number_item", EmitDefaultValue=false)] [DataMember(Name="number_item", EmitDefaultValue=false)]
public decimal? NumberItem { get; set; } public decimal NumberItem { get; set; }
/// <summary> /// <summary>
/// Gets or Sets IntegerItem /// Gets or Sets IntegerItem
/// </summary> /// </summary>
[DataMember(Name="integer_item", EmitDefaultValue=false)] [DataMember(Name="integer_item", EmitDefaultValue=false)]
public int? IntegerItem { get; set; } public int IntegerItem { get; set; }
/// <summary> /// <summary>
/// Gets or Sets BoolItem /// Gets or Sets BoolItem
/// </summary> /// </summary>
[DataMember(Name="bool_item", EmitDefaultValue=false)] [DataMember(Name="bool_item", EmitDefaultValue=false)]
public bool? BoolItem { get; set; } public bool BoolItem { get; set; }
/// <summary> /// <summary>
/// Gets or Sets ArrayItem /// Gets or Sets ArrayItem
/// </summary> /// </summary>
[DataMember(Name="array_item", EmitDefaultValue=false)] [DataMember(Name="array_item", EmitDefaultValue=false)]
public List<int?> ArrayItem { get; set; } public List<int> ArrayItem { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -43,7 +43,7 @@ namespace Org.OpenAPITools.Model
/// <param name="integerItem">integerItem (required).</param> /// <param name="integerItem">integerItem (required).</param>
/// <param name="boolItem">boolItem (required).</param> /// <param name="boolItem">boolItem (required).</param>
/// <param name="arrayItem">arrayItem (required).</param> /// <param name="arrayItem">arrayItem (required).</param>
public TypeHolderExample(string stringItem = default(string), decimal? numberItem = default(decimal?), int? integerItem = default(int?), bool? boolItem = default(bool?), List<int?> arrayItem = default(List<int?>)) public TypeHolderExample(string stringItem = default(string), decimal numberItem = default(decimal), int integerItem = default(int), bool boolItem = default(bool), List<int> arrayItem = default(List<int>))
{ {
// to ensure "stringItem" is required (not null) // to ensure "stringItem" is required (not null)
if (stringItem == null) if (stringItem == null)
@ -107,25 +107,25 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets NumberItem /// Gets or Sets NumberItem
/// </summary> /// </summary>
[DataMember(Name="number_item", EmitDefaultValue=false)] [DataMember(Name="number_item", EmitDefaultValue=false)]
public decimal? NumberItem { get; set; } public decimal NumberItem { get; set; }
/// <summary> /// <summary>
/// Gets or Sets IntegerItem /// Gets or Sets IntegerItem
/// </summary> /// </summary>
[DataMember(Name="integer_item", EmitDefaultValue=false)] [DataMember(Name="integer_item", EmitDefaultValue=false)]
public int? IntegerItem { get; set; } public int IntegerItem { get; set; }
/// <summary> /// <summary>
/// Gets or Sets BoolItem /// Gets or Sets BoolItem
/// </summary> /// </summary>
[DataMember(Name="bool_item", EmitDefaultValue=false)] [DataMember(Name="bool_item", EmitDefaultValue=false)]
public bool? BoolItem { get; set; } public bool BoolItem { get; set; }
/// <summary> /// <summary>
/// Gets or Sets ArrayItem /// Gets or Sets ArrayItem
/// </summary> /// </summary>
[DataMember(Name="array_item", EmitDefaultValue=false)] [DataMember(Name="array_item", EmitDefaultValue=false)]
public List<int?> ArrayItem { get; set; } public List<int> ArrayItem { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -41,7 +41,7 @@ namespace Org.OpenAPITools.Model
/// <param name="password">password.</param> /// <param name="password">password.</param>
/// <param name="phone">phone.</param> /// <param name="phone">phone.</param>
/// <param name="userStatus">User Status.</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?)) 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.Id = id;
this.Username = username; this.Username = username;
@ -57,7 +57,7 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets Id /// Gets or Sets Id
/// </summary> /// </summary>
[DataMember(Name="id", EmitDefaultValue=false)] [DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; } public long Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Username /// Gets or Sets Username
@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model
/// </summary> /// </summary>
/// <value>User Status</value> /// <value>User Status</value>
[DataMember(Name="userStatus", EmitDefaultValue=false)] [DataMember(Name="userStatus", EmitDefaultValue=false)]
public int? UserStatus { get; set; } public int UserStatus { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -62,7 +62,7 @@ namespace Org.OpenAPITools.Model
/// <param name="prefixNsBoolean">prefixNsBoolean.</param> /// <param name="prefixNsBoolean">prefixNsBoolean.</param>
/// <param name="prefixNsArray">prefixNsArray.</param> /// <param name="prefixNsArray">prefixNsArray.</param>
/// <param name="prefixNsWrappedArray">prefixNsWrappedArray.</param> /// <param name="prefixNsWrappedArray">prefixNsWrappedArray.</param>
public XmlItem(string attributeString = default(string), decimal? attributeNumber = default(decimal?), int? attributeInteger = default(int?), bool? attributeBoolean = default(bool?), List<int?> wrappedArray = default(List<int?>), string nameString = default(string), decimal? nameNumber = default(decimal?), int? nameInteger = default(int?), bool? nameBoolean = default(bool?), List<int?> nameArray = default(List<int?>), List<int?> nameWrappedArray = default(List<int?>), string prefixString = default(string), decimal? prefixNumber = default(decimal?), int? prefixInteger = default(int?), bool? prefixBoolean = default(bool?), List<int?> prefixArray = default(List<int?>), List<int?> prefixWrappedArray = default(List<int?>), string namespaceString = default(string), decimal? namespaceNumber = default(decimal?), int? namespaceInteger = default(int?), bool? namespaceBoolean = default(bool?), List<int?> namespaceArray = default(List<int?>), List<int?> namespaceWrappedArray = default(List<int?>), string prefixNsString = default(string), decimal? prefixNsNumber = default(decimal?), int? prefixNsInteger = default(int?), bool? prefixNsBoolean = default(bool?), List<int?> prefixNsArray = default(List<int?>), List<int?> prefixNsWrappedArray = default(List<int?>)) public XmlItem(string attributeString = default(string), decimal attributeNumber = default(decimal), int attributeInteger = default(int), bool attributeBoolean = default(bool), List<int> wrappedArray = default(List<int>), string nameString = default(string), decimal nameNumber = default(decimal), int nameInteger = default(int), bool nameBoolean = default(bool), List<int> nameArray = default(List<int>), List<int> nameWrappedArray = default(List<int>), string prefixString = default(string), decimal prefixNumber = default(decimal), int prefixInteger = default(int), bool prefixBoolean = default(bool), List<int> prefixArray = default(List<int>), List<int> prefixWrappedArray = default(List<int>), string namespaceString = default(string), decimal namespaceNumber = default(decimal), int namespaceInteger = default(int), bool namespaceBoolean = default(bool), List<int> namespaceArray = default(List<int>), List<int> namespaceWrappedArray = default(List<int>), string prefixNsString = default(string), decimal prefixNsNumber = default(decimal), int prefixNsInteger = default(int), bool prefixNsBoolean = default(bool), List<int> prefixNsArray = default(List<int>), List<int> prefixNsWrappedArray = default(List<int>))
{ {
this.AttributeString = attributeString; this.AttributeString = attributeString;
this.AttributeNumber = attributeNumber; this.AttributeNumber = attributeNumber;
@ -105,25 +105,25 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets AttributeNumber /// Gets or Sets AttributeNumber
/// </summary> /// </summary>
[DataMember(Name="attribute_number", EmitDefaultValue=false)] [DataMember(Name="attribute_number", EmitDefaultValue=false)]
public decimal? AttributeNumber { get; set; } public decimal AttributeNumber { get; set; }
/// <summary> /// <summary>
/// Gets or Sets AttributeInteger /// Gets or Sets AttributeInteger
/// </summary> /// </summary>
[DataMember(Name="attribute_integer", EmitDefaultValue=false)] [DataMember(Name="attribute_integer", EmitDefaultValue=false)]
public int? AttributeInteger { get; set; } public int AttributeInteger { get; set; }
/// <summary> /// <summary>
/// Gets or Sets AttributeBoolean /// Gets or Sets AttributeBoolean
/// </summary> /// </summary>
[DataMember(Name="attribute_boolean", EmitDefaultValue=false)] [DataMember(Name="attribute_boolean", EmitDefaultValue=false)]
public bool? AttributeBoolean { get; set; } public bool AttributeBoolean { get; set; }
/// <summary> /// <summary>
/// Gets or Sets WrappedArray /// Gets or Sets WrappedArray
/// </summary> /// </summary>
[DataMember(Name="wrapped_array", EmitDefaultValue=false)] [DataMember(Name="wrapped_array", EmitDefaultValue=false)]
public List<int?> WrappedArray { get; set; } public List<int> WrappedArray { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NameString /// Gets or Sets NameString
@ -135,31 +135,31 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets NameNumber /// Gets or Sets NameNumber
/// </summary> /// </summary>
[DataMember(Name="name_number", EmitDefaultValue=false)] [DataMember(Name="name_number", EmitDefaultValue=false)]
public decimal? NameNumber { get; set; } public decimal NameNumber { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NameInteger /// Gets or Sets NameInteger
/// </summary> /// </summary>
[DataMember(Name="name_integer", EmitDefaultValue=false)] [DataMember(Name="name_integer", EmitDefaultValue=false)]
public int? NameInteger { get; set; } public int NameInteger { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NameBoolean /// Gets or Sets NameBoolean
/// </summary> /// </summary>
[DataMember(Name="name_boolean", EmitDefaultValue=false)] [DataMember(Name="name_boolean", EmitDefaultValue=false)]
public bool? NameBoolean { get; set; } public bool NameBoolean { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NameArray /// Gets or Sets NameArray
/// </summary> /// </summary>
[DataMember(Name="name_array", EmitDefaultValue=false)] [DataMember(Name="name_array", EmitDefaultValue=false)]
public List<int?> NameArray { get; set; } public List<int> NameArray { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NameWrappedArray /// Gets or Sets NameWrappedArray
/// </summary> /// </summary>
[DataMember(Name="name_wrapped_array", EmitDefaultValue=false)] [DataMember(Name="name_wrapped_array", EmitDefaultValue=false)]
public List<int?> NameWrappedArray { get; set; } public List<int> NameWrappedArray { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixString /// Gets or Sets PrefixString
@ -171,31 +171,31 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets PrefixNumber /// Gets or Sets PrefixNumber
/// </summary> /// </summary>
[DataMember(Name="prefix_number", EmitDefaultValue=false)] [DataMember(Name="prefix_number", EmitDefaultValue=false)]
public decimal? PrefixNumber { get; set; } public decimal PrefixNumber { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixInteger /// Gets or Sets PrefixInteger
/// </summary> /// </summary>
[DataMember(Name="prefix_integer", EmitDefaultValue=false)] [DataMember(Name="prefix_integer", EmitDefaultValue=false)]
public int? PrefixInteger { get; set; } public int PrefixInteger { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixBoolean /// Gets or Sets PrefixBoolean
/// </summary> /// </summary>
[DataMember(Name="prefix_boolean", EmitDefaultValue=false)] [DataMember(Name="prefix_boolean", EmitDefaultValue=false)]
public bool? PrefixBoolean { get; set; } public bool PrefixBoolean { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixArray /// Gets or Sets PrefixArray
/// </summary> /// </summary>
[DataMember(Name="prefix_array", EmitDefaultValue=false)] [DataMember(Name="prefix_array", EmitDefaultValue=false)]
public List<int?> PrefixArray { get; set; } public List<int> PrefixArray { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixWrappedArray /// Gets or Sets PrefixWrappedArray
/// </summary> /// </summary>
[DataMember(Name="prefix_wrapped_array", EmitDefaultValue=false)] [DataMember(Name="prefix_wrapped_array", EmitDefaultValue=false)]
public List<int?> PrefixWrappedArray { get; set; } public List<int> PrefixWrappedArray { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NamespaceString /// Gets or Sets NamespaceString
@ -207,31 +207,31 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets NamespaceNumber /// Gets or Sets NamespaceNumber
/// </summary> /// </summary>
[DataMember(Name="namespace_number", EmitDefaultValue=false)] [DataMember(Name="namespace_number", EmitDefaultValue=false)]
public decimal? NamespaceNumber { get; set; } public decimal NamespaceNumber { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NamespaceInteger /// Gets or Sets NamespaceInteger
/// </summary> /// </summary>
[DataMember(Name="namespace_integer", EmitDefaultValue=false)] [DataMember(Name="namespace_integer", EmitDefaultValue=false)]
public int? NamespaceInteger { get; set; } public int NamespaceInteger { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NamespaceBoolean /// Gets or Sets NamespaceBoolean
/// </summary> /// </summary>
[DataMember(Name="namespace_boolean", EmitDefaultValue=false)] [DataMember(Name="namespace_boolean", EmitDefaultValue=false)]
public bool? NamespaceBoolean { get; set; } public bool NamespaceBoolean { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NamespaceArray /// Gets or Sets NamespaceArray
/// </summary> /// </summary>
[DataMember(Name="namespace_array", EmitDefaultValue=false)] [DataMember(Name="namespace_array", EmitDefaultValue=false)]
public List<int?> NamespaceArray { get; set; } public List<int> NamespaceArray { get; set; }
/// <summary> /// <summary>
/// Gets or Sets NamespaceWrappedArray /// Gets or Sets NamespaceWrappedArray
/// </summary> /// </summary>
[DataMember(Name="namespace_wrapped_array", EmitDefaultValue=false)] [DataMember(Name="namespace_wrapped_array", EmitDefaultValue=false)]
public List<int?> NamespaceWrappedArray { get; set; } public List<int> NamespaceWrappedArray { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixNsString /// Gets or Sets PrefixNsString
@ -243,31 +243,31 @@ namespace Org.OpenAPITools.Model
/// Gets or Sets PrefixNsNumber /// Gets or Sets PrefixNsNumber
/// </summary> /// </summary>
[DataMember(Name="prefix_ns_number", EmitDefaultValue=false)] [DataMember(Name="prefix_ns_number", EmitDefaultValue=false)]
public decimal? PrefixNsNumber { get; set; } public decimal PrefixNsNumber { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixNsInteger /// Gets or Sets PrefixNsInteger
/// </summary> /// </summary>
[DataMember(Name="prefix_ns_integer", EmitDefaultValue=false)] [DataMember(Name="prefix_ns_integer", EmitDefaultValue=false)]
public int? PrefixNsInteger { get; set; } public int PrefixNsInteger { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixNsBoolean /// Gets or Sets PrefixNsBoolean
/// </summary> /// </summary>
[DataMember(Name="prefix_ns_boolean", EmitDefaultValue=false)] [DataMember(Name="prefix_ns_boolean", EmitDefaultValue=false)]
public bool? PrefixNsBoolean { get; set; } public bool PrefixNsBoolean { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixNsArray /// Gets or Sets PrefixNsArray
/// </summary> /// </summary>
[DataMember(Name="prefix_ns_array", EmitDefaultValue=false)] [DataMember(Name="prefix_ns_array", EmitDefaultValue=false)]
public List<int?> PrefixNsArray { get; set; } public List<int> PrefixNsArray { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrefixNsWrappedArray /// Gets or Sets PrefixNsWrappedArray
/// </summary> /// </summary>
[DataMember(Name="prefix_ns_wrapped_array", EmitDefaultValue=false)] [DataMember(Name="prefix_ns_wrapped_array", EmitDefaultValue=false)]
public List<int?> PrefixNsWrappedArray { get; set; } public List<int> PrefixNsWrappedArray { get; set; }
/// <summary> /// <summary>
/// Returns the string presentation of the object /// Returns the string presentation of the object

View File

@ -1 +1 @@
4.0.1-SNAPSHOT 4.1.0-SNAPSHOT

View File

@ -64,7 +64,7 @@ Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-p
## Getting Started ## Getting Started
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -74,10 +74,11 @@ namespace Example
{ {
public class Example public class Example
{ {
public void main() public static void Main()
{ {
var apiInstance = new AnotherFakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new AnotherFakeApi(Configuration.Default);
var body = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
@ -86,9 +87,11 @@ namespace Example
ModelClient result = apiInstance.Call123TestSpecialTags(body); ModelClient result = apiInstance.Call123TestSpecialTags(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling AnotherFakeApi.Call123TestSpecialTags: " + e.Message ); Debug.Print("Exception when calling AnotherFakeApi.Call123TestSpecialTags: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }

View File

@ -6,10 +6,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**MapString** | **Dictionary&lt;string, string&gt;** | | [optional] **MapString** | **Dictionary&lt;string, string&gt;** | | [optional]
**MapNumber** | **Dictionary&lt;string, decimal?&gt;** | | [optional] **MapNumber** | **Dictionary&lt;string, decimal&gt;** | | [optional]
**MapInteger** | **Dictionary&lt;string, int?&gt;** | | [optional] **MapInteger** | **Dictionary&lt;string, int&gt;** | | [optional]
**MapBoolean** | **Dictionary&lt;string, bool?&gt;** | | [optional] **MapBoolean** | **Dictionary&lt;string, bool&gt;** | | [optional]
**MapArrayInteger** | **Dictionary&lt;string, List&lt;int?&gt;&gt;** | | [optional] **MapArrayInteger** | **Dictionary&lt;string, List&lt;int&gt;&gt;** | | [optional]
**MapArrayAnytype** | **Dictionary&lt;string, List&lt;Object&gt;&gt;** | | [optional] **MapArrayAnytype** | **Dictionary&lt;string, List&lt;Object&gt;&gt;** | | [optional]
**MapMapString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional] **MapMapString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapMapAnytype** | **Dictionary&lt;string, Dictionary&lt;string, Object&gt;&gt;** | | [optional] **MapMapAnytype** | **Dictionary&lt;string, Dictionary&lt;string, Object&gt;&gt;** | | [optional]

View File

@ -19,7 +19,7 @@ To test special tags and operation ID starting with number
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -29,9 +29,10 @@ namespace Example
{ {
public class Call123TestSpecialTagsExample public class Call123TestSpecialTagsExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new AnotherFakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new AnotherFakeApi(Configuration.Default);
var body = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
@ -40,9 +41,11 @@ namespace Example
ModelClient result = apiInstance.Call123TestSpecialTags(body); ModelClient result = apiInstance.Call123TestSpecialTags(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling AnotherFakeApi.Call123TestSpecialTags: " + e.Message ); Debug.Print("Exception when calling AnotherFakeApi.Call123TestSpecialTags: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -69,6 +72,11 @@ No authorization required
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: application/json - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Code** | **int?** | | [optional] **Code** | **int** | | [optional]
**Type** | **string** | | [optional] **Type** | **string** | | [optional]
**Message** | **string** | | [optional] **Message** | **string** | | [optional]

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ArrayArrayNumber** | **List&lt;List&lt;decimal?&gt;&gt;** | | [optional] **ArrayArrayNumber** | **List&lt;List&lt;decimal&gt;&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ArrayNumber** | **List&lt;decimal?&gt;** | | [optional] **ArrayNumber** | **List&lt;decimal&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -6,7 +6,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ArrayOfString** | **List&lt;string&gt;** | | [optional] **ArrayOfString** | **List&lt;string&gt;** | | [optional]
**ArrayArrayOfInteger** | **List&lt;List&lt;long?&gt;&gt;** | | [optional] **ArrayArrayOfInteger** | **List&lt;List&lt;long&gt;&gt;** | | [optional]
**ArrayArrayOfModel** | **List&lt;List&lt;ReadOnlyFirst&gt;&gt;** | | [optional] **ArrayArrayOfModel** | **List&lt;List&lt;ReadOnlyFirst&gt;&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ClassName** | **string** | | **ClassName** | **string** | |
**Color** | **string** | | [optional] [default to "red"] **Color** | **string** | | [optional] [default to "red"]
**Declawed** | **bool?** | | [optional] **Declawed** | **bool** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Declawed** | **bool?** | | [optional] **Declawed** | **bool** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**Name** | **string** | | [default to "default-name"] **Name** | **string** | | [default to "default-name"]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -7,8 +7,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**EnumString** | **string** | | [optional] **EnumString** | **string** | | [optional]
**EnumStringRequired** | **string** | | **EnumStringRequired** | **string** | |
**EnumInteger** | **int?** | | [optional] **EnumInteger** | **int** | | [optional]
**EnumNumber** | **double?** | | [optional] **EnumNumber** | **double** | | [optional]
**OuterEnum** | **OuterEnum** | | [optional] **OuterEnum** | **OuterEnum** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -31,7 +31,7 @@ this route creates an XmlItem
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -41,9 +41,10 @@ namespace Example
{ {
public class CreateXmlItemExample public class CreateXmlItemExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var xmlItem = new XmlItem(); // XmlItem | XmlItem Body var xmlItem = new XmlItem(); // XmlItem | XmlItem Body
try try
@ -51,9 +52,11 @@ namespace Example
// creates an XmlItem // creates an XmlItem
apiInstance.CreateXmlItem(xmlItem); apiInstance.CreateXmlItem(xmlItem);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.CreateXmlItem: " + e.Message ); Debug.Print("Exception when calling FakeApi.CreateXmlItem: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -80,6 +83,11 @@ No authorization required
- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16 - **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -88,7 +96,7 @@ No authorization required
## FakeOuterBooleanSerialize ## FakeOuterBooleanSerialize
> bool? FakeOuterBooleanSerialize (bool? body = null) > bool FakeOuterBooleanSerialize (bool body = null)
@ -97,7 +105,7 @@ Test serialization of outer boolean types
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -107,19 +115,22 @@ namespace Example
{ {
public class FakeOuterBooleanSerializeExample public class FakeOuterBooleanSerializeExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var body = true; // bool? | Input boolean as post body (optional) var apiInstance = new FakeApi(Configuration.Default);
var body = true; // bool | Input boolean as post body (optional)
try try
{ {
bool? result = apiInstance.FakeOuterBooleanSerialize(body); bool result = apiInstance.FakeOuterBooleanSerialize(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.FakeOuterBooleanSerialize: " + e.Message ); Debug.Print("Exception when calling FakeApi.FakeOuterBooleanSerialize: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -131,11 +142,11 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | **bool?**| Input boolean as post body | [optional] **body** | **bool**| Input boolean as post body | [optional]
### Return type ### Return type
**bool?** **bool**
### Authorization ### Authorization
@ -146,6 +157,11 @@ No authorization required
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: */* - **Accept**: */*
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Output boolean | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -163,7 +179,7 @@ Test serialization of object with outer number type
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -173,9 +189,10 @@ namespace Example
{ {
public class FakeOuterCompositeSerializeExample public class FakeOuterCompositeSerializeExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional) var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
try try
@ -183,9 +200,11 @@ namespace Example
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body); OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.FakeOuterCompositeSerialize: " + e.Message ); Debug.Print("Exception when calling FakeApi.FakeOuterCompositeSerialize: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -212,6 +231,11 @@ No authorization required
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: */* - **Accept**: */*
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Output composite | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -220,7 +244,7 @@ No authorization required
## FakeOuterNumberSerialize ## FakeOuterNumberSerialize
> decimal? FakeOuterNumberSerialize (decimal? body = null) > decimal FakeOuterNumberSerialize (decimal body = null)
@ -229,7 +253,7 @@ Test serialization of outer number types
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -239,19 +263,22 @@ namespace Example
{ {
public class FakeOuterNumberSerializeExample public class FakeOuterNumberSerializeExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var body = 8.14; // decimal? | Input number as post body (optional) var apiInstance = new FakeApi(Configuration.Default);
var body = 8.14; // decimal | Input number as post body (optional)
try try
{ {
decimal? result = apiInstance.FakeOuterNumberSerialize(body); decimal result = apiInstance.FakeOuterNumberSerialize(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.FakeOuterNumberSerialize: " + e.Message ); Debug.Print("Exception when calling FakeApi.FakeOuterNumberSerialize: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -263,11 +290,11 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | **decimal?**| Input number as post body | [optional] **body** | **decimal**| Input number as post body | [optional]
### Return type ### Return type
**decimal?** **decimal**
### Authorization ### Authorization
@ -278,6 +305,11 @@ No authorization required
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: */* - **Accept**: */*
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Output number | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -295,7 +327,7 @@ Test serialization of outer string types
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -305,9 +337,10 @@ namespace Example
{ {
public class FakeOuterStringSerializeExample public class FakeOuterStringSerializeExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var body = body_example; // string | Input string as post body (optional) var body = body_example; // string | Input string as post body (optional)
try try
@ -315,9 +348,11 @@ namespace Example
string result = apiInstance.FakeOuterStringSerialize(body); string result = apiInstance.FakeOuterStringSerialize(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.FakeOuterStringSerialize: " + e.Message ); Debug.Print("Exception when calling FakeApi.FakeOuterStringSerialize: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -344,6 +379,11 @@ No authorization required
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: */* - **Accept**: */*
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Output string | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -361,7 +401,7 @@ For this test, the body for this request much reference a schema named `File`.
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -371,18 +411,21 @@ namespace Example
{ {
public class TestBodyWithFileSchemaExample public class TestBodyWithFileSchemaExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var body = new FileSchemaTestClass(); // FileSchemaTestClass | var body = new FileSchemaTestClass(); // FileSchemaTestClass |
try try
{ {
apiInstance.TestBodyWithFileSchema(body); apiInstance.TestBodyWithFileSchema(body);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.TestBodyWithFileSchema: " + e.Message ); Debug.Print("Exception when calling FakeApi.TestBodyWithFileSchema: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -409,6 +452,11 @@ No authorization required
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Success | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -424,7 +472,7 @@ No authorization required
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -434,9 +482,10 @@ namespace Example
{ {
public class TestBodyWithQueryParamsExample public class TestBodyWithQueryParamsExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var query = query_example; // string | var query = query_example; // string |
var body = new User(); // User | var body = new User(); // User |
@ -444,9 +493,11 @@ namespace Example
{ {
apiInstance.TestBodyWithQueryParams(query, body); apiInstance.TestBodyWithQueryParams(query, body);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.TestBodyWithQueryParams: " + e.Message ); Debug.Print("Exception when calling FakeApi.TestBodyWithQueryParams: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -474,6 +525,11 @@ No authorization required
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Success | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -491,7 +547,7 @@ To test \"client\" model
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -501,9 +557,10 @@ namespace Example
{ {
public class TestClientModelExample public class TestClientModelExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var body = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
@ -512,9 +569,11 @@ namespace Example
ModelClient result = apiInstance.TestClientModel(body); ModelClient result = apiInstance.TestClientModel(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.TestClientModel: " + e.Message ); Debug.Print("Exception when calling FakeApi.TestClientModel: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -541,6 +600,11 @@ No authorization required
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: application/json - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -549,7 +613,7 @@ No authorization required
## TestEndpointParameters ## TestEndpointParameters
> void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) > void TestEndpointParameters (decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, System.IO.Stream binary = null, DateTime date = null, DateTime dateTime = null, string password = null, string callback = null)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -558,7 +622,7 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -568,25 +632,26 @@ namespace Example
{ {
public class TestEndpointParametersExample public class TestEndpointParametersExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure HTTP basic authorization: http_basic_test // Configure HTTP basic authorization: http_basic_test
Configuration.Default.Username = "YOUR_USERNAME"; Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD"; Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new FakeApi(); var apiInstance = new FakeApi(Configuration.Default);
var number = 8.14; // decimal? | None var number = 8.14; // decimal | None
var _double = 1.2D; // double? | None var _double = 1.2D; // double | None
var patternWithoutDelimiter = patternWithoutDelimiter_example; // string | None var patternWithoutDelimiter = patternWithoutDelimiter_example; // string | None
var _byte = BYTE_ARRAY_DATA_HERE; // byte[] | None var _byte = BYTE_ARRAY_DATA_HERE; // byte[] | None
var integer = 56; // int? | None (optional) var integer = 56; // int | None (optional)
var int32 = 56; // int? | None (optional) var int32 = 56; // int | None (optional)
var int64 = 789; // long? | None (optional) var int64 = 789; // long | None (optional)
var _float = 3.4F; // float? | None (optional) var _float = 3.4F; // float | None (optional)
var _string = _string_example; // string | None (optional) var _string = _string_example; // string | None (optional)
var binary = BINARY_DATA_HERE; // System.IO.Stream | None (optional) var binary = BINARY_DATA_HERE; // System.IO.Stream | None (optional)
var date = 2013-10-20; // DateTime? | None (optional) var date = 2013-10-20; // DateTime | None (optional)
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional) var dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None (optional)
var password = password_example; // string | None (optional) var password = password_example; // string | None (optional)
var callback = callback_example; // string | None (optional) var callback = callback_example; // string | None (optional)
@ -595,9 +660,11 @@ namespace Example
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.TestEndpointParameters: " + e.Message ); Debug.Print("Exception when calling FakeApi.TestEndpointParameters: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -609,18 +676,18 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**number** | **decimal?**| None | **number** | **decimal**| None |
**_double** | **double?**| None | **_double** | **double**| None |
**patternWithoutDelimiter** | **string**| None | **patternWithoutDelimiter** | **string**| None |
**_byte** | **byte[]**| None | **_byte** | **byte[]**| None |
**integer** | **int?**| None | [optional] **integer** | **int**| None | [optional]
**int32** | **int?**| None | [optional] **int32** | **int**| None | [optional]
**int64** | **long?**| None | [optional] **int64** | **long**| None | [optional]
**_float** | **float?**| None | [optional] **_float** | **float**| None | [optional]
**_string** | **string**| None | [optional] **_string** | **string**| None | [optional]
**binary** | **System.IO.Stream**| None | [optional] **binary** | **System.IO.Stream**| None | [optional]
**date** | **DateTime?**| None | [optional] **date** | **DateTime**| None | [optional]
**dateTime** | **DateTime?**| None | [optional] **dateTime** | **DateTime**| None | [optional]
**password** | **string**| None | [optional] **password** | **string**| None | [optional]
**callback** | **string**| None | [optional] **callback** | **string**| None | [optional]
@ -637,6 +704,12 @@ void (empty response body)
- **Content-Type**: application/x-www-form-urlencoded - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **400** | Invalid username supplied | - |
| **404** | User not found | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -645,7 +718,7 @@ void (empty response body)
## TestEnumParameters ## TestEnumParameters
> void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null) > void TestEnumParameters (List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null, List<string> enumFormStringArray = null, string enumFormString = null)
To test enum parameters To test enum parameters
@ -654,7 +727,7 @@ To test enum parameters
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -664,15 +737,16 @@ namespace Example
{ {
public class TestEnumParametersExample public class TestEnumParametersExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var enumHeaderStringArray = enumHeaderStringArray_example; // List<string> | Header parameter enum test (string array) (optional) var enumHeaderStringArray = enumHeaderStringArray_example; // List<string> | Header parameter enum test (string array) (optional)
var enumHeaderString = enumHeaderString_example; // string | Header parameter enum test (string) (optional) (default to -efg) var enumHeaderString = enumHeaderString_example; // string | Header parameter enum test (string) (optional) (default to -efg)
var enumQueryStringArray = enumQueryStringArray_example; // List<string> | Query parameter enum test (string array) (optional) var enumQueryStringArray = enumQueryStringArray_example; // List<string> | Query parameter enum test (string array) (optional)
var enumQueryString = enumQueryString_example; // string | Query parameter enum test (string) (optional) (default to -efg) var enumQueryString = enumQueryString_example; // string | Query parameter enum test (string) (optional) (default to -efg)
var enumQueryInteger = 56; // int? | Query parameter enum test (double) (optional) var enumQueryInteger = 56; // int | Query parameter enum test (double) (optional)
var enumQueryDouble = 1.2D; // double? | Query parameter enum test (double) (optional) var enumQueryDouble = 1.2D; // double | Query parameter enum test (double) (optional)
var enumFormStringArray = new List<string>(); // List<string> | Form parameter enum test (string array) (optional) (default to $) var enumFormStringArray = new List<string>(); // List<string> | Form parameter enum test (string array) (optional) (default to $)
var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg) var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg)
@ -681,9 +755,11 @@ namespace Example
// To test enum parameters // To test enum parameters
apiInstance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); apiInstance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.TestEnumParameters: " + e.Message ); Debug.Print("Exception when calling FakeApi.TestEnumParameters: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -699,8 +775,8 @@ Name | Type | Description | Notes
**enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg] **enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg]
**enumQueryStringArray** | **List&lt;string&gt;**| Query parameter enum test (string array) | [optional] **enumQueryStringArray** | **List&lt;string&gt;**| Query parameter enum test (string array) | [optional]
**enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg] **enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg]
**enumQueryInteger** | **int?**| Query parameter enum test (double) | [optional] **enumQueryInteger** | **int**| Query parameter enum test (double) | [optional]
**enumQueryDouble** | **double?**| Query parameter enum test (double) | [optional] **enumQueryDouble** | **double**| Query parameter enum test (double) | [optional]
**enumFormStringArray** | [**List&lt;string&gt;**](string.md)| Form parameter enum test (string array) | [optional] [default to $] **enumFormStringArray** | [**List&lt;string&gt;**](string.md)| Form parameter enum test (string array) | [optional] [default to $]
**enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg] **enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg]
@ -717,6 +793,12 @@ No authorization required
- **Content-Type**: application/x-www-form-urlencoded - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **400** | Invalid request | - |
| **404** | Not found | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -725,7 +807,7 @@ No authorization required
## TestGroupParameters ## TestGroupParameters
> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) > void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int stringGroup = null, bool booleanGroup = null, long int64Group = null)
Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional)
@ -734,7 +816,7 @@ Fake endpoint to test group parameters (optional)
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -744,24 +826,27 @@ namespace Example
{ {
public class TestGroupParametersExample public class TestGroupParametersExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var requiredStringGroup = 56; // int? | Required String in group parameters var apiInstance = new FakeApi(Configuration.Default);
var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters var requiredStringGroup = 56; // int | Required String in group parameters
var requiredInt64Group = 789; // long? | Required Integer in group parameters var requiredBooleanGroup = true; // bool | Required Boolean in group parameters
var stringGroup = 56; // int? | String in group parameters (optional) var requiredInt64Group = 789; // long | Required Integer in group parameters
var booleanGroup = true; // bool? | Boolean in group parameters (optional) var stringGroup = 56; // int | String in group parameters (optional)
var int64Group = 789; // long? | Integer in group parameters (optional) var booleanGroup = true; // bool | Boolean in group parameters (optional)
var int64Group = 789; // long | Integer in group parameters (optional)
try try
{ {
// Fake endpoint to test group parameters (optional) // Fake endpoint to test group parameters (optional)
apiInstance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); apiInstance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.TestGroupParameters: " + e.Message ); Debug.Print("Exception when calling FakeApi.TestGroupParameters: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -773,12 +858,12 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requiredStringGroup** | **int?**| Required String in group parameters | **requiredStringGroup** | **int**| Required String in group parameters |
**requiredBooleanGroup** | **bool?**| Required Boolean in group parameters | **requiredBooleanGroup** | **bool**| Required Boolean in group parameters |
**requiredInt64Group** | **long?**| Required Integer in group parameters | **requiredInt64Group** | **long**| Required Integer in group parameters |
**stringGroup** | **int?**| String in group parameters | [optional] **stringGroup** | **int**| String in group parameters | [optional]
**booleanGroup** | **bool?**| Boolean in group parameters | [optional] **booleanGroup** | **bool**| Boolean in group parameters | [optional]
**int64Group** | **long?**| Integer in group parameters | [optional] **int64Group** | **long**| Integer in group parameters | [optional]
### Return type ### Return type
@ -793,6 +878,11 @@ No authorization required
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **400** | Someting wrong | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -808,7 +898,7 @@ test inline additionalProperties
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -818,9 +908,10 @@ namespace Example
{ {
public class TestInlineAdditionalPropertiesExample public class TestInlineAdditionalPropertiesExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
try try
@ -828,9 +919,11 @@ namespace Example
// test inline additionalProperties // test inline additionalProperties
apiInstance.TestInlineAdditionalProperties(param); apiInstance.TestInlineAdditionalProperties(param);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.TestInlineAdditionalProperties: " + e.Message ); Debug.Print("Exception when calling FakeApi.TestInlineAdditionalProperties: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -857,6 +950,11 @@ No authorization required
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -872,7 +970,7 @@ test json serialization of form data
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -882,9 +980,10 @@ namespace Example
{ {
public class TestJsonFormDataExample public class TestJsonFormDataExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new FakeApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new FakeApi(Configuration.Default);
var param = param_example; // string | field1 var param = param_example; // string | field1
var param2 = param2_example; // string | field2 var param2 = param2_example; // string | field2
@ -893,9 +992,11 @@ namespace Example
// test json serialization of form data // test json serialization of form data
apiInstance.TestJsonFormData(param, param2); apiInstance.TestJsonFormData(param, param2);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeApi.TestJsonFormData: " + e.Message ); Debug.Print("Exception when calling FakeApi.TestJsonFormData: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -923,6 +1024,11 @@ No authorization required
- **Content-Type**: application/x-www-form-urlencoded - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -19,7 +19,7 @@ To test class name in snake case
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -29,14 +29,15 @@ namespace Example
{ {
public class TestClassnameExample public class TestClassnameExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure API key authorization: api_key_query // Configure API key authorization: api_key_query
Configuration.Default.AddApiKey("api_key_query", "YOUR_API_KEY"); Configuration.Default.AddApiKey("api_key_query", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer"); // Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
var apiInstance = new FakeClassnameTags123Api(); var apiInstance = new FakeClassnameTags123Api(Configuration.Default);
var body = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
@ -45,9 +46,11 @@ namespace Example
ModelClient result = apiInstance.TestClassname(body); ModelClient result = apiInstance.TestClassname(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling FakeClassnameTags123Api.TestClassname: " + e.Message ); Debug.Print("Exception when calling FakeClassnameTags123Api.TestClassname: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -74,6 +77,11 @@ Name | Type | Description | Notes
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: application/json - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -5,18 +5,18 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Integer** | **int?** | | [optional] **Integer** | **int** | | [optional]
**Int32** | **int?** | | [optional] **Int32** | **int** | | [optional]
**Int64** | **long?** | | [optional] **Int64** | **long** | | [optional]
**Number** | **decimal?** | | **Number** | **decimal** | |
**Float** | **float?** | | [optional] **Float** | **float** | | [optional]
**Double** | **double?** | | [optional] **Double** | **double** | | [optional]
**String** | **string** | | [optional] **String** | **string** | | [optional]
**Byte** | **byte[]** | | **Byte** | **byte[]** | |
**Binary** | **System.IO.Stream** | | [optional] **Binary** | **System.IO.Stream** | | [optional]
**Date** | **DateTime?** | | **Date** | **DateTime** | |
**DateTime** | **DateTime?** | | [optional] **DateTime** | **DateTime** | | [optional]
**Uuid** | **Guid?** | | [optional] **Uuid** | **Guid** | | [optional]
**Password** | **string** | | **Password** | **string** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -7,8 +7,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional] **MapMapOfString** | **Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt;** | | [optional]
**MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional] **MapOfEnumString** | **Dictionary&lt;string, string&gt;** | | [optional]
**DirectMap** | **Dictionary&lt;string, bool?&gt;** | | [optional] **DirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
**IndirectMap** | **Dictionary&lt;string, bool?&gt;** | | [optional] **IndirectMap** | **Dictionary&lt;string, bool&gt;** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,8 +5,8 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Uuid** | **Guid?** | | [optional] **Uuid** | **Guid** | | [optional]
**DateTime** | **DateTime?** | | [optional] **DateTime** | **DateTime** | | [optional]
**Map** | [**Dictionary&lt;string, Animal&gt;**](Animal.md) | | [optional] **Map** | [**Dictionary&lt;string, Animal&gt;**](Animal.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Name** | **int?** | | [optional] **Name** | **int** | | [optional]
**Class** | **string** | | [optional] **Class** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -5,10 +5,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**_Name** | **int?** | | **_Name** | **int** | |
**SnakeCase** | **int?** | | [optional] **SnakeCase** | **int** | | [optional]
**Property** | **string** | | [optional] **Property** | **string** | | [optional]
**_123Number** | **int?** | | [optional] **_123Number** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**JustNumber** | **decimal?** | | [optional] **JustNumber** | **decimal** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,12 +5,12 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**PetId** | **long?** | | [optional] **PetId** | **long** | | [optional]
**Quantity** | **int?** | | [optional] **Quantity** | **int** | | [optional]
**ShipDate** | **DateTime?** | | [optional] **ShipDate** | **DateTime** | | [optional]
**Status** | **string** | Order Status | [optional] **Status** | **string** | Order Status | [optional]
**Complete** | **bool?** | | [optional] [default to false] **Complete** | **bool** | | [optional] [default to false]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,9 +5,9 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**MyNumber** | **decimal?** | | [optional] **MyNumber** | **decimal** | | [optional]
**MyString** | **string** | | [optional] **MyString** | **string** | | [optional]
**MyBoolean** | **bool?** | | [optional] **MyBoolean** | **bool** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**Category** | [**Category**](Category.md) | | [optional] **Category** | [**Category**](Category.md) | | [optional]
**Name** | **string** | | **Name** | **string** | |
**PhotoUrls** | **List&lt;string&gt;** | | **PhotoUrls** | **List&lt;string&gt;** | |

View File

@ -25,7 +25,7 @@ Add a new pet to the store
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -35,12 +35,13 @@ namespace Example
{ {
public class AddPetExample public class AddPetExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi(Configuration.Default);
var body = new Pet(); // Pet | Pet object that needs to be added to the store var body = new Pet(); // Pet | Pet object that needs to be added to the store
try try
@ -48,9 +49,11 @@ namespace Example
// Add a new pet to the store // Add a new pet to the store
apiInstance.AddPet(body); apiInstance.AddPet(body);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling PetApi.AddPet: " + e.Message ); Debug.Print("Exception when calling PetApi.AddPet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -77,6 +80,12 @@ void (empty response body)
- **Content-Type**: application/json, application/xml - **Content-Type**: application/json, application/xml
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **405** | Invalid input | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -85,14 +94,14 @@ void (empty response body)
## DeletePet ## DeletePet
> void DeletePet (long? petId, string apiKey = null) > void DeletePet (long petId, string apiKey = null)
Deletes a pet Deletes a pet
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -102,13 +111,14 @@ namespace Example
{ {
public class DeletePetExample public class DeletePetExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | Pet id to delete var petId = 789; // long | Pet id to delete
var apiKey = apiKey_example; // string | (optional) var apiKey = apiKey_example; // string | (optional)
try try
@ -116,9 +126,11 @@ namespace Example
// Deletes a pet // Deletes a pet
apiInstance.DeletePet(petId, apiKey); apiInstance.DeletePet(petId, apiKey);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling PetApi.DeletePet: " + e.Message ); Debug.Print("Exception when calling PetApi.DeletePet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -130,7 +142,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| Pet id to delete | **petId** | **long**| Pet id to delete |
**apiKey** | **string**| | [optional] **apiKey** | **string**| | [optional]
### Return type ### Return type
@ -146,6 +158,12 @@ void (empty response body)
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid pet value | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -154,7 +172,7 @@ void (empty response body)
## FindPetsByStatus ## FindPetsByStatus
> List<Pet> FindPetsByStatus (List<string> status) > List&lt;Pet&gt; FindPetsByStatus (List<string> status)
Finds Pets by status Finds Pets by status
@ -163,7 +181,7 @@ Multiple status values can be provided with comma separated strings
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -173,23 +191,26 @@ namespace Example
{ {
public class FindPetsByStatusExample public class FindPetsByStatusExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi(Configuration.Default);
var status = status_example; // List<string> | Status values that need to be considered for filter var status = status_example; // List<string> | Status values that need to be considered for filter
try try
{ {
// Finds Pets by status // Finds Pets by status
List&lt;Pet&gt; result = apiInstance.FindPetsByStatus(status); List<Pet> result = apiInstance.FindPetsByStatus(status);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling PetApi.FindPetsByStatus: " + e.Message ); Debug.Print("Exception when calling PetApi.FindPetsByStatus: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -205,7 +226,7 @@ Name | Type | Description | Notes
### Return type ### Return type
[**List<Pet>**](Pet.md) [**List&lt;Pet&gt;**](Pet.md)
### Authorization ### Authorization
@ -216,6 +237,12 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid status value | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -224,7 +251,7 @@ Name | Type | Description | Notes
## FindPetsByTags ## FindPetsByTags
> List<Pet> FindPetsByTags (List<string> tags) > List&lt;Pet&gt; FindPetsByTags (List<string> tags)
Finds Pets by tags Finds Pets by tags
@ -233,7 +260,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -243,23 +270,26 @@ namespace Example
{ {
public class FindPetsByTagsExample public class FindPetsByTagsExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi(Configuration.Default);
var tags = new List<string>(); // List<string> | Tags to filter by var tags = new List<string>(); // List<string> | Tags to filter by
try try
{ {
// Finds Pets by tags // Finds Pets by tags
List&lt;Pet&gt; result = apiInstance.FindPetsByTags(tags); List<Pet> result = apiInstance.FindPetsByTags(tags);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling PetApi.FindPetsByTags: " + e.Message ); Debug.Print("Exception when calling PetApi.FindPetsByTags: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -275,7 +305,7 @@ Name | Type | Description | Notes
### Return type ### Return type
[**List<Pet>**](Pet.md) [**List&lt;Pet&gt;**](Pet.md)
### Authorization ### Authorization
@ -286,6 +316,12 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid tag value | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -294,7 +330,7 @@ Name | Type | Description | Notes
## GetPetById ## GetPetById
> Pet GetPetById (long? petId) > Pet GetPetById (long petId)
Find pet by ID Find pet by ID
@ -303,7 +339,7 @@ Returns a single pet
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -313,15 +349,16 @@ namespace Example
{ {
public class GetPetByIdExample public class GetPetByIdExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure API key authorization: api_key // Configure API key authorization: api_key
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY"); Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer"); // Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
var apiInstance = new PetApi(); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | ID of pet to return var petId = 789; // long | ID of pet to return
try try
{ {
@ -329,9 +366,11 @@ namespace Example
Pet result = apiInstance.GetPetById(petId); Pet result = apiInstance.GetPetById(petId);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling PetApi.GetPetById: " + e.Message ); Debug.Print("Exception when calling PetApi.GetPetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -343,7 +382,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| ID of pet to return | **petId** | **long**| ID of pet to return |
### Return type ### Return type
@ -358,6 +397,13 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid ID supplied | - |
| **404** | Pet not found | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -373,7 +419,7 @@ Update an existing pet
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -383,12 +429,13 @@ namespace Example
{ {
public class UpdatePetExample public class UpdatePetExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi(Configuration.Default);
var body = new Pet(); // Pet | Pet object that needs to be added to the store var body = new Pet(); // Pet | Pet object that needs to be added to the store
try try
@ -396,9 +443,11 @@ namespace Example
// Update an existing pet // Update an existing pet
apiInstance.UpdatePet(body); apiInstance.UpdatePet(body);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling PetApi.UpdatePet: " + e.Message ); Debug.Print("Exception when calling PetApi.UpdatePet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -425,6 +474,14 @@ void (empty response body)
- **Content-Type**: application/json, application/xml - **Content-Type**: application/json, application/xml
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid ID supplied | - |
| **404** | Pet not found | - |
| **405** | Validation exception | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -433,14 +490,14 @@ void (empty response body)
## UpdatePetWithForm ## UpdatePetWithForm
> void UpdatePetWithForm (long? petId, string name = null, string status = null) > void UpdatePetWithForm (long petId, string name = null, string status = null)
Updates a pet in the store with form data Updates a pet in the store with form data
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -450,13 +507,14 @@ namespace Example
{ {
public class UpdatePetWithFormExample public class UpdatePetWithFormExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | ID of pet that needs to be updated var petId = 789; // long | ID of pet that needs to be updated
var name = name_example; // string | Updated name of the pet (optional) var name = name_example; // string | Updated name of the pet (optional)
var status = status_example; // string | Updated status of the pet (optional) var status = status_example; // string | Updated status of the pet (optional)
@ -465,9 +523,11 @@ namespace Example
// Updates a pet in the store with form data // Updates a pet in the store with form data
apiInstance.UpdatePetWithForm(petId, name, status); apiInstance.UpdatePetWithForm(petId, name, status);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling PetApi.UpdatePetWithForm: " + e.Message ); Debug.Print("Exception when calling PetApi.UpdatePetWithForm: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -479,7 +539,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| ID of pet that needs to be updated | **petId** | **long**| ID of pet that needs to be updated |
**name** | **string**| Updated name of the pet | [optional] **name** | **string**| Updated name of the pet | [optional]
**status** | **string**| Updated status of the pet | [optional] **status** | **string**| Updated status of the pet | [optional]
@ -496,6 +556,11 @@ void (empty response body)
- **Content-Type**: application/x-www-form-urlencoded - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **405** | Invalid input | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -504,14 +569,14 @@ void (empty response body)
## UploadFile ## UploadFile
> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) > ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null)
uploads an image uploads an image
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -521,13 +586,14 @@ namespace Example
{ {
public class UploadFileExample public class UploadFileExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | ID of pet to update var petId = 789; // long | ID of pet to update
var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional) var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
var file = BINARY_DATA_HERE; // System.IO.Stream | file to upload (optional) var file = BINARY_DATA_HERE; // System.IO.Stream | file to upload (optional)
@ -537,9 +603,11 @@ namespace Example
ApiResponse result = apiInstance.UploadFile(petId, additionalMetadata, file); ApiResponse result = apiInstance.UploadFile(petId, additionalMetadata, file);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling PetApi.UploadFile: " + e.Message ); Debug.Print("Exception when calling PetApi.UploadFile: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -551,7 +619,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| ID of pet to update | **petId** | **long**| ID of pet to update |
**additionalMetadata** | **string**| Additional data to pass to server | [optional] **additionalMetadata** | **string**| Additional data to pass to server | [optional]
**file** | **System.IO.Stream**| file to upload | [optional] **file** | **System.IO.Stream**| file to upload | [optional]
@ -568,6 +636,11 @@ Name | Type | Description | Notes
- **Content-Type**: multipart/form-data - **Content-Type**: multipart/form-data
- **Accept**: application/json - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -576,14 +649,14 @@ Name | Type | Description | Notes
## UploadFileWithRequiredFile ## UploadFileWithRequiredFile
> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) > ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null)
uploads an image (required) uploads an image (required)
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -593,13 +666,14 @@ namespace Example
{ {
public class UploadFileWithRequiredFileExample public class UploadFileWithRequiredFileExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure OAuth2 access token for authorization: petstore_auth // Configure OAuth2 access token for authorization: petstore_auth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); var apiInstance = new PetApi(Configuration.Default);
var petId = 789; // long? | ID of pet to update var petId = 789; // long | ID of pet to update
var requiredFile = BINARY_DATA_HERE; // System.IO.Stream | file to upload var requiredFile = BINARY_DATA_HERE; // System.IO.Stream | file to upload
var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional) var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
@ -609,9 +683,11 @@ namespace Example
ApiResponse result = apiInstance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); ApiResponse result = apiInstance.UploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling PetApi.UploadFileWithRequiredFile: " + e.Message ); Debug.Print("Exception when calling PetApi.UploadFileWithRequiredFile: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -623,7 +699,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **long?**| ID of pet to update | **petId** | **long**| ID of pet to update |
**requiredFile** | **System.IO.Stream**| file to upload | **requiredFile** | **System.IO.Stream**| file to upload |
**additionalMetadata** | **string**| Additional data to pass to server | [optional] **additionalMetadata** | **string**| Additional data to pass to server | [optional]
@ -640,6 +716,11 @@ Name | Type | Description | Notes
- **Content-Type**: multipart/form-data - **Content-Type**: multipart/form-data
- **Accept**: application/json - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**_Return** | **int?** | | [optional] **_Return** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**SpecialPropertyName** | **long?** | | [optional] **SpecialPropertyName** | **long** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -22,7 +22,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -32,9 +32,10 @@ namespace Example
{ {
public class DeleteOrderExample public class DeleteOrderExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new StoreApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new StoreApi(Configuration.Default);
var orderId = orderId_example; // string | ID of the order that needs to be deleted var orderId = orderId_example; // string | ID of the order that needs to be deleted
try try
@ -42,9 +43,11 @@ namespace Example
// Delete purchase order by ID // Delete purchase order by ID
apiInstance.DeleteOrder(orderId); apiInstance.DeleteOrder(orderId);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling StoreApi.DeleteOrder: " + e.Message ); Debug.Print("Exception when calling StoreApi.DeleteOrder: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -71,6 +74,12 @@ No authorization required
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **400** | Invalid ID supplied | - |
| **404** | Order not found | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -79,7 +88,7 @@ No authorization required
## GetInventory ## GetInventory
> Dictionary<string, int?> GetInventory () > Dictionary&lt;string, int&gt; GetInventory ()
Returns pet inventories by status Returns pet inventories by status
@ -88,7 +97,7 @@ Returns a map of status codes to quantities
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -98,24 +107,27 @@ namespace Example
{ {
public class GetInventoryExample public class GetInventoryExample
{ {
public void main() public static void Main()
{ {
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
// Configure API key authorization: api_key // Configure API key authorization: api_key
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY"); Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api_key", "Bearer"); // Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
var apiInstance = new StoreApi(); var apiInstance = new StoreApi(Configuration.Default);
try try
{ {
// Returns pet inventories by status // Returns pet inventories by status
Dictionary&lt;string, int?&gt; result = apiInstance.GetInventory(); Dictionary<string, int> result = apiInstance.GetInventory();
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling StoreApi.GetInventory: " + e.Message ); Debug.Print("Exception when calling StoreApi.GetInventory: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -128,7 +140,7 @@ This endpoint does not need any parameter.
### Return type ### Return type
**Dictionary<string, int?>** **Dictionary<string, int>**
### Authorization ### Authorization
@ -139,6 +151,11 @@ This endpoint does not need any parameter.
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/json - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -147,7 +164,7 @@ This endpoint does not need any parameter.
## GetOrderById ## GetOrderById
> Order GetOrderById (long? orderId) > Order GetOrderById (long orderId)
Find purchase order by ID Find purchase order by ID
@ -156,7 +173,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -166,10 +183,11 @@ namespace Example
{ {
public class GetOrderByIdExample public class GetOrderByIdExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new StoreApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var orderId = 789; // long? | ID of pet that needs to be fetched var apiInstance = new StoreApi(Configuration.Default);
var orderId = 789; // long | ID of pet that needs to be fetched
try try
{ {
@ -177,9 +195,11 @@ namespace Example
Order result = apiInstance.GetOrderById(orderId); Order result = apiInstance.GetOrderById(orderId);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling StoreApi.GetOrderById: " + e.Message ); Debug.Print("Exception when calling StoreApi.GetOrderById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -191,7 +211,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**orderId** | **long?**| ID of pet that needs to be fetched | **orderId** | **long**| ID of pet that needs to be fetched |
### Return type ### Return type
@ -206,6 +226,13 @@ No authorization required
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid ID supplied | - |
| **404** | Order not found | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
@ -221,7 +248,7 @@ Place an order for a pet
### Example ### Example
```csharp ```csharp
using System; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using Org.OpenAPITools.Api; using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client; using Org.OpenAPITools.Client;
@ -231,9 +258,10 @@ namespace Example
{ {
public class PlaceOrderExample public class PlaceOrderExample
{ {
public void main() public static void Main()
{ {
var apiInstance = new StoreApi(); Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new StoreApi(Configuration.Default);
var body = new Order(); // Order | order placed for purchasing the pet var body = new Order(); // Order | order placed for purchasing the pet
try try
@ -242,9 +270,11 @@ namespace Example
Order result = apiInstance.PlaceOrder(body); Order result = apiInstance.PlaceOrder(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (ApiException e)
{ {
Debug.Print("Exception when calling StoreApi.PlaceOrder: " + e.Message ); Debug.Print("Exception when calling StoreApi.PlaceOrder: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
} }
} }
} }
@ -271,6 +301,12 @@ No authorization required
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **400** | Invalid Order | - |
[[Back to top]](#) [[Back to top]](#)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**Name** | **string** | | [optional] **Name** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)

View File

@ -6,10 +6,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**StringItem** | **string** | | [default to "what"] **StringItem** | **string** | | [default to "what"]
**NumberItem** | **decimal?** | | **NumberItem** | **decimal** | |
**IntegerItem** | **int?** | | **IntegerItem** | **int** | |
**BoolItem** | **bool?** | | [default to true] **BoolItem** | **bool** | | [default to true]
**ArrayItem** | **List&lt;int?&gt;** | | **ArrayItem** | **List&lt;int&gt;** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -6,10 +6,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**StringItem** | **string** | | **StringItem** | **string** | |
**NumberItem** | **decimal?** | | **NumberItem** | **decimal** | |
**IntegerItem** | **int?** | | **IntegerItem** | **int** | |
**BoolItem** | **bool?** | | **BoolItem** | **bool** | |
**ArrayItem** | **List&lt;int?&gt;** | | **ArrayItem** | **List&lt;int&gt;** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

View File

@ -5,14 +5,14 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**Id** | **long?** | | [optional] **Id** | **long** | | [optional]
**Username** | **string** | | [optional] **Username** | **string** | | [optional]
**FirstName** | **string** | | [optional] **FirstName** | **string** | | [optional]
**LastName** | **string** | | [optional] **LastName** | **string** | | [optional]
**Email** | **string** | | [optional] **Email** | **string** | | [optional]
**Password** | **string** | | [optional] **Password** | **string** | | [optional]
**Phone** | **string** | | [optional] **Phone** | **string** | | [optional]
**UserStatus** | **int?** | User Status | [optional] **UserStatus** | **int** | User Status | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to Model list]](../README.md#documentation-for-models)
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to API list]](../README.md#documentation-for-api-endpoints)

Some files were not shown because too many files have changed in this diff Show More