forked from loafle/openapi-generator-original
[Java][*] Annotate deprecated operations and schemas (#9478)
Refs #3358 Ensure `deprecated` operations are annotated/documented as such on the generated methods. Libraries updated: * [feign] * [google-api-client] * [microprofile] * [okhttp-gson] * [resttemplate] * [retrofit] * [retrofit/play*] * [webclient] * [vertx] Ensure `deprecated` schemas are annotated/documented as such on the generated classes/fields. Libraries updated: * [feign] * [google-api-client] * [jersey2] * [microprofile] * [native] * [okhttp-gson] * [rest-assured] * [resteasy] * [resttemplate] * [retrofit*] * [webclient] * [vertx] Also fix two minor bugs to get the java sample tests working: * Fix an invalid jackson-datatype-threetenbp version number in vertx/pom.mustache * Fix a bad return type in webclient/api_test.mustache when uniqueItems=true Since this commit updates petstore-with-fake-endpoints-models-for-testing.yaml, several other samples were updated, but it's just new files to reflect the deprecated schemas, so there should be no consequential differences. Relevant bits of the spec: * https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#user-content-operationdeprecated * https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#user-content-schemadeprecated
This commit is contained in:
parent
c42e03e251
commit
bd070308d9
9
bin/configs/java-feign-openapi3.yaml
Normal file
9
bin/configs/java-feign-openapi3.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/feign-openapi3
|
||||||
|
library: feign
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
booleanGetterPrefix: is
|
||||||
|
artifactId: petstore-feign-openapi3
|
||||||
|
hideGenerationTimestamp: "true"
|
8
bin/configs/java-google-api-client-openapi3.yaml
Normal file
8
bin/configs/java-google-api-client-openapi3.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/google-api-client-openapi3
|
||||||
|
library: google-api-client
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-google-api-client-openapi3
|
||||||
|
hideGenerationTimestamp: "true"
|
6
bin/configs/java-microprofile-rest-client-openapi3.yaml
Normal file
6
bin/configs/java-microprofile-rest-client-openapi3.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/microprofile-rest-client-openapi3
|
||||||
|
library: microprofile
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: microprofile-rest-client-openapi3
|
8
bin/configs/java-okhttp-gson-openapi3.yaml
Normal file
8
bin/configs/java-okhttp-gson-openapi3.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/okhttp-gson-openapi3
|
||||||
|
library: okhttp-gson
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-okhttp-gson-openapi3
|
||||||
|
hideGenerationTimestamp: "true"
|
11
bin/configs/java-rest-assured-openapi3.yaml
Normal file
11
bin/configs/java-rest-assured-openapi3.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/rest-assured-openapi3
|
||||||
|
library: rest-assured
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
performBeanValidation: "true"
|
||||||
|
useBeanValidation: "true"
|
||||||
|
booleanGetterPrefix: is
|
||||||
|
artifactId: petstore-rest-assured-openapi3
|
||||||
|
hideGenerationTimestamp: "true"
|
7
bin/configs/java-resteasy-openapi3.yaml
Normal file
7
bin/configs/java-resteasy-openapi3.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/resteasy-openapi3
|
||||||
|
library: resteasy
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-resteasy-openapi3
|
||||||
|
hideGenerationTimestamp: "true"
|
7
bin/configs/java-resttemplate-openapi3.yaml
Normal file
7
bin/configs/java-resttemplate-openapi3.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/resttemplate-openapi3
|
||||||
|
library: resttemplate
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-resttemplate-openapi3
|
||||||
|
hideGenerationTimestamp: "true"
|
8
bin/configs/java-retrofit2-openapi3.yaml
Normal file
8
bin/configs/java-retrofit2-openapi3.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/retrofit2-openapi3
|
||||||
|
library: retrofit2
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-retrofit2-openapi3
|
||||||
|
hideGenerationTimestamp: "true"
|
9
bin/configs/java-vertx-openapi3.yaml
Normal file
9
bin/configs/java-vertx-openapi3.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/vertx-openapi3
|
||||||
|
library: vertx
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-vertx-openapi3
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
dateLibrary: java8
|
7
bin/configs/java-webclient-openapi3.yaml
Normal file
7
bin/configs/java-webclient-openapi3.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/webclient-openapi3
|
||||||
|
library: webclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-webclient-openapi3
|
||||||
|
hideGenerationTimestamp: "true"
|
@ -31,10 +31,16 @@ public interface {{classname}} extends ApiClient.Api {
|
|||||||
* @return {{returnType}}
|
* @return {{returnType}}
|
||||||
{{/returnType}}
|
{{/returnType}}
|
||||||
{{#externalDocs}}
|
{{#externalDocs}}
|
||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
{{/externalDocs}}
|
{{/externalDocs}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
@RequestLine("{{httpMethod}} {{{path}}}{{#hasQueryParams}}?{{/hasQueryParams}}{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
|
@RequestLine("{{httpMethod}} {{{path}}}{{#hasQueryParams}}?{{/hasQueryParams}}{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
|
||||||
@Headers({
|
@Headers({
|
||||||
{{#vendorExtensions.x-contentType}} "Content-Type: {{vendorExtensions.x-contentType}}",
|
{{#vendorExtensions.x-contentType}} "Content-Type: {{vendorExtensions.x-contentType}}",
|
||||||
@ -72,7 +78,13 @@ public interface {{classname}} extends ApiClient.Api {
|
|||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
{{/externalDocs}}
|
{{/externalDocs}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
@RequestLine("{{httpMethod}} {{{path}}}?{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
|
@RequestLine("{{httpMethod}} {{{path}}}?{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
|
||||||
@Headers({
|
@Headers({
|
||||||
{{#vendorExtensions.x-contentType}} "Content-Type: {{vendorExtensions.x-contentType}}",
|
{{#vendorExtensions.x-contentType}} "Content-Type: {{vendorExtensions.x-contentType}}",
|
||||||
|
@ -53,9 +53,14 @@ public class {{classname}} {
|
|||||||
* @throws IOException if an error occurs while attempting to invoke the API{{#externalDocs}}
|
* @throws IOException if an error occurs while attempting to invoke the API{{#externalDocs}}
|
||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
{{/externalDocs}}
|
{{/externalDocs}}{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws IOException {
|
public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws IOException {
|
||||||
{{#returnType}}HttpResponse response = {{/returnType}}{{operationId}}ForHttpResponse({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}}
|
{{#returnType}}HttpResponse response = {{/returnType}}{{operationId}}ForHttpResponse({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}}
|
||||||
TypeReference<{{{returnType}}}> typeRef = new TypeReference<{{{returnType}}}>() {};
|
TypeReference<{{{returnType}}}> typeRef = new TypeReference<{{{returnType}}}>() {};
|
||||||
@ -72,15 +77,23 @@ public class {{classname}} {
|
|||||||
* @throws IOException if an error occurs while attempting to invoke the API{{#externalDocs}}
|
* @throws IOException if an error occurs while attempting to invoke the API{{#externalDocs}}
|
||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
{{/externalDocs}}
|
{{/externalDocs}}{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#bodyParam}}{{^required}}{{{dataType}}} {{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}Map<String, Object> params) throws IOException {
|
public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#bodyParam}}{{^required}}{{{dataType}}} {{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}Map<String, Object> params) throws IOException {
|
||||||
{{#returnType}}HttpResponse response = {{/returnType}}{{operationId}}ForHttpResponse({{#bodyParam}}{{^required}}{{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}params);{{#returnType}}
|
{{#returnType}}HttpResponse response = {{/returnType}}{{operationId}}ForHttpResponse({{#bodyParam}}{{^required}}{{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}params);{{#returnType}}
|
||||||
TypeReference<{{{returnType}}}> typeRef = new TypeReference<{{{returnType}}}>() {};
|
TypeReference<{{{returnType}}}> typeRef = new TypeReference<{{{returnType}}}>() {};
|
||||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);{{/returnType}}
|
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);{{/returnType}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
public HttpResponse {{operationId}}ForHttpResponse({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws IOException {
|
public HttpResponse {{operationId}}ForHttpResponse({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws IOException {
|
||||||
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
|
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
|
||||||
if ({{paramName}} == null) {
|
if ({{paramName}} == null) {
|
||||||
@ -112,6 +125,9 @@ public class {{classname}} {
|
|||||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.{{httpMethod}}, genericUrl, content).execute();
|
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.{{httpMethod}}, genericUrl, content).execute();
|
||||||
}{{#bodyParam}}
|
}{{#bodyParam}}
|
||||||
|
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
public HttpResponse {{operationId}}ForHttpResponse({{#allParams}}{{#isBodyParam}}java.io.InputStream {{paramName}}{{/isBodyParam}}{{^isBodyParam}}{{{dataType}}} {{paramName}}{{/isBodyParam}}{{^-last}}, {{/-last}}{{/allParams}}, String mediaType) throws IOException {
|
public HttpResponse {{operationId}}ForHttpResponse({{#allParams}}{{#isBodyParam}}java.io.InputStream {{paramName}}{{/isBodyParam}}{{^isBodyParam}}{{{dataType}}} {{paramName}}{{/isBodyParam}}{{^-last}}, {{/-last}}{{/allParams}}, String mediaType) throws IOException {
|
||||||
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
|
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
|
||||||
if ({{paramName}} == null) {
|
if ({{paramName}} == null) {
|
||||||
@ -145,6 +161,9 @@ public class {{classname}} {
|
|||||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.{{httpMethod}}, genericUrl, content).execute();
|
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.{{httpMethod}}, genericUrl, content).execute();
|
||||||
}{{/bodyParam}}
|
}{{/bodyParam}}
|
||||||
|
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
public HttpResponse {{operationId}}ForHttpResponse({{#bodyParam}}{{^required}}{{{dataType}}} {{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}Map<String, Object> params) throws IOException {
|
public HttpResponse {{operationId}}ForHttpResponse({{#bodyParam}}{{^required}}{{{dataType}}} {{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}Map<String, Object> params) throws IOException {
|
||||||
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
|
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
|
||||||
if ({{paramName}} == null) {
|
if ({{paramName}} == null) {
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}
|
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}{{#isDeprecated}}
|
||||||
*/{{#description}}
|
* @deprecated{{/isDeprecated}}
|
||||||
|
*/{{#isDeprecated}}
|
||||||
|
@Deprecated{{/isDeprecated}}{{#description}}
|
||||||
@ApiModel(description = "{{{description}}}"){{/description}}
|
@ApiModel(description = "{{{description}}}"){{/description}}
|
||||||
{{#jackson}}
|
{{#jackson}}
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
@ -187,7 +189,13 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
|
|||||||
* maximum: {{maximum}}
|
* maximum: {{maximum}}
|
||||||
{{/maximum}}
|
{{/maximum}}
|
||||||
* @return {{name}}
|
* @return {{name}}
|
||||||
|
{{#deprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/deprecated}}
|
||||||
**/
|
**/
|
||||||
|
{{#deprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/deprecated}}
|
||||||
{{#required}}
|
{{#required}}
|
||||||
{{#isNullable}}
|
{{#isNullable}}
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@ -44,8 +44,14 @@ public interface {{classname}} {
|
|||||||
* {{notes}}
|
* {{notes}}
|
||||||
*
|
*
|
||||||
{{/notes}}
|
{{/notes}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
{{/summary}}
|
{{/summary}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
@{{httpMethod}}
|
@{{httpMethod}}
|
||||||
{{#subresourceOperation}}@Path("{{{path}}}"){{/subresourceOperation}}
|
{{#subresourceOperation}}@Path("{{{path}}}"){{/subresourceOperation}}
|
||||||
{{#hasConsumes}}
|
{{#hasConsumes}}
|
||||||
|
@ -69,7 +69,13 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{#serializ
|
|||||||
* maximum: {{maximum}}
|
* maximum: {{maximum}}
|
||||||
{{/maximum}}
|
{{/maximum}}
|
||||||
* @return {{name}}
|
* @return {{name}}
|
||||||
|
{{#deprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/deprecated}}
|
||||||
**/
|
**/
|
||||||
|
{{#deprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/deprecated}}
|
||||||
{{^withXml}}
|
{{^withXml}}
|
||||||
@JsonbProperty("{{baseName}}")
|
@JsonbProperty("{{baseName}}")
|
||||||
{{/withXml}}
|
{{/withXml}}
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
import {{invokerPackage}}.JSON;
|
import {{invokerPackage}}.JSON;
|
||||||
{{/discriminator}}
|
{{/discriminator}}
|
||||||
/**
|
/**
|
||||||
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}
|
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}{{#isDeprecated}}
|
||||||
*/{{#description}}
|
* @deprecated{{/isDeprecated}}
|
||||||
|
*/{{#isDeprecated}}
|
||||||
|
@Deprecated{{/isDeprecated}}{{#description}}
|
||||||
@ApiModel(description = "{{{description}}}"){{/description}}
|
@ApiModel(description = "{{{description}}}"){{/description}}
|
||||||
{{#jackson}}
|
{{#jackson}}
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
@ -190,7 +192,13 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
|
|||||||
* maximum: {{maximum}}
|
* maximum: {{maximum}}
|
||||||
{{/maximum}}
|
{{/maximum}}
|
||||||
* @return {{name}}
|
* @return {{name}}
|
||||||
|
{{#deprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/deprecated}}
|
||||||
**/
|
**/
|
||||||
|
{{#deprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/deprecated}}
|
||||||
{{#required}}
|
{{#required}}
|
||||||
{{#isNullable}}
|
{{#isNullable}}
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@ -67,6 +67,9 @@ public class {{classname}} {
|
|||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
{{/externalDocs}}
|
{{/externalDocs}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
{{#isDeprecated}}
|
{{#isDeprecated}}
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@ -95,6 +98,9 @@ public class {{classname}} {
|
|||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
{{/externalDocs}}
|
{{/externalDocs}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
{{#isDeprecated}}
|
{{#isDeprecated}}
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
@ -31,7 +31,13 @@ public interface {{classname}} {
|
|||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
{{/externalDocs}}
|
{{/externalDocs}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
{{#formParams}}{{#-first}}
|
{{#formParams}}{{#-first}}
|
||||||
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
|
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
|
||||||
@{{httpMethod}}("{{{path}}}")
|
@{{httpMethod}}("{{{path}}}")
|
||||||
@ -50,7 +56,13 @@ public interface {{classname}} {
|
|||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
{{/externalDocs}}
|
{{/externalDocs}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
{{#formParams}}{{#-first}}
|
{{#formParams}}{{#-first}}
|
||||||
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
|
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
|
||||||
@{{httpMethod}}("{{{path}}}")
|
@{{httpMethod}}("{{{path}}}")
|
||||||
|
@ -34,7 +34,13 @@ public interface {{classname}} {
|
|||||||
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}
|
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
|
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
{{#formParams}}
|
{{#formParams}}
|
||||||
{{#-first}}
|
{{#-first}}
|
||||||
{{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}
|
{{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}
|
||||||
|
@ -34,7 +34,13 @@ public interface {{classname}} {
|
|||||||
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}
|
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
|
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
{{#formParams}}
|
{{#formParams}}
|
||||||
{{#-first}}
|
{{#-first}}
|
||||||
{{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}
|
{{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}
|
||||||
|
@ -34,7 +34,13 @@ public interface {{classname}} {
|
|||||||
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}
|
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
|
* @return Call<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
{{#formParams}}
|
{{#formParams}}
|
||||||
{{#-first}}
|
{{#-first}}
|
||||||
{{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}
|
{{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}
|
||||||
|
@ -13,8 +13,14 @@ public interface {{classname}} {
|
|||||||
|
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
void {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}Handler<AsyncResult<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}>> handler);
|
void {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}Handler<AsyncResult<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}>> handler);
|
||||||
|
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
void {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}ApiClient.AuthInfo authInfo, Handler<AsyncResult<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}>> handler);
|
void {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}ApiClient.AuthInfo authInfo, Handler<AsyncResult<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}>> handler);
|
||||||
|
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
|
@ -277,7 +277,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.joschi.jackson</groupId>
|
<groupId>com.github.joschi.jackson</groupId>
|
||||||
<artifactId>jackson-datatype-threetenbp</artifactId>
|
<artifactId>jackson-datatype-threetenbp</artifactId>
|
||||||
<version>${jackson-version}</version>
|
<version>2.9.10</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
{{/threetenbp}}
|
{{/threetenbp}}
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -60,10 +60,16 @@ public class {{classname}} {
|
|||||||
{{/allParams}}{{#returnType}} * @return {{returnType}}
|
{{/allParams}}{{#returnType}} * @return {{returnType}}
|
||||||
{{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API
|
{{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API
|
||||||
{{#externalDocs}}
|
{{#externalDocs}}
|
||||||
* {{description}}
|
* {{description}}
|
||||||
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
* @see <a href="{{url}}">{{summary}} Documentation</a>
|
||||||
{{/externalDocs}}
|
{{/externalDocs}}
|
||||||
|
{{#isDeprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
*/
|
*/
|
||||||
|
{{#isDeprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/isDeprecated}}
|
||||||
private ResponseSpec {{operationId}}RequestCreation({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException {
|
private ResponseSpec {{operationId}}RequestCreation({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException {
|
||||||
Object postBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}};
|
Object postBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}};
|
||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
|
@ -12,6 +12,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
{{/fullJavaUtil}}
|
{{/fullJavaUtil}}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -33,7 +34,7 @@ public class {{classname}}Test {
|
|||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}} = null;
|
{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}} = null;
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
{{#returnType}}{{{returnType}}} response = {{/returnType}}api.{{operationId}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){{#isArray}}.collectList().block(){{/isArray}}{{^isArray}}.block(){{/isArray}};
|
{{#returnType}}{{{returnType}}} response = {{/returnType}}api.{{operationId}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){{#isArray}}{{#uniqueItems}}.collect(Collectors.toSet()){{/uniqueItems}}{{^uniqueItems}}.collectList(){{/uniqueItems}}.block(){{/isArray}}{{^isArray}}.block(){{/isArray}};
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}
|
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}{{#isDeprecated}}
|
||||||
*/{{#description}}
|
* @deprecated{{/isDeprecated}}
|
||||||
|
*/{{#isDeprecated}}
|
||||||
|
@Deprecated{{/isDeprecated}}{{#description}}
|
||||||
@ApiModel(description = "{{{description}}}"){{/description}}
|
@ApiModel(description = "{{{description}}}"){{/description}}
|
||||||
{{#jackson}}
|
{{#jackson}}
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
@ -170,7 +172,13 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
|
|||||||
* maximum: {{maximum}}
|
* maximum: {{maximum}}
|
||||||
{{/maximum}}
|
{{/maximum}}
|
||||||
* @return {{name}}
|
* @return {{name}}
|
||||||
|
{{#deprecated}}
|
||||||
|
* @deprecated
|
||||||
|
{{/deprecated}}
|
||||||
**/
|
**/
|
||||||
|
{{#deprecated}}
|
||||||
|
@Deprecated
|
||||||
|
{{/deprecated}}
|
||||||
{{#required}}
|
{{#required}}
|
||||||
{{#isNullable}}
|
{{#isNullable}}
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@ -2121,3 +2121,24 @@ components:
|
|||||||
default: '2010-01-01T10:10:10.000111+01:00'
|
default: '2010-01-01T10:10:10.000111+01:00'
|
||||||
example: '2010-01-01T10:10:10.000111+01:00'
|
example: '2010-01-01T10:10:10.000111+01:00'
|
||||||
format: date-time
|
format: date-time
|
||||||
|
DeprecatedObject:
|
||||||
|
type: object
|
||||||
|
deprecated: true
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
ObjectWithDeprecatedFields:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: number
|
||||||
|
deprecated: true
|
||||||
|
deprecatedRef:
|
||||||
|
$ref: '#/components/schemas/DeprecatedObject'
|
||||||
|
bars:
|
||||||
|
type: array
|
||||||
|
deprecated: true
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Bar'
|
||||||
|
@ -1862,3 +1862,24 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
value:
|
value:
|
||||||
$ref: '#/components/schemas/OuterEnumInteger'
|
$ref: '#/components/schemas/OuterEnumInteger'
|
||||||
|
DeprecatedObject:
|
||||||
|
type: object
|
||||||
|
deprecated: true
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
ObjectWithDeprecatedFields:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: number
|
||||||
|
deprecated: true
|
||||||
|
deprecatedRef:
|
||||||
|
$ref: '#/components/schemas/DeprecatedObject'
|
||||||
|
bars:
|
||||||
|
type: array
|
||||||
|
deprecated: true
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Bar'
|
||||||
|
@ -24,6 +24,7 @@ docs/ClassModel.md
|
|||||||
docs/ComplexQuadrilateral.md
|
docs/ComplexQuadrilateral.md
|
||||||
docs/DanishPig.md
|
docs/DanishPig.md
|
||||||
docs/DefaultApi.md
|
docs/DefaultApi.md
|
||||||
|
docs/DeprecatedObject.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/Drawing.md
|
docs/Drawing.md
|
||||||
@ -55,6 +56,7 @@ docs/Name.md
|
|||||||
docs/NullableClass.md
|
docs/NullableClass.md
|
||||||
docs/NullableShape.md
|
docs/NullableShape.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
|
docs/ObjectWithDeprecatedFields.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
@ -84,6 +86,8 @@ docs/UserApi.md
|
|||||||
docs/Whale.md
|
docs/Whale.md
|
||||||
docs/Zebra.md
|
docs/Zebra.md
|
||||||
git_push.sh
|
git_push.sh
|
||||||
|
src/Org.OpenAPITools.Test/Model/DeprecatedObjectTests.cs
|
||||||
|
src/Org.OpenAPITools.Test/Model/ObjectWithDeprecatedFieldsTests.cs
|
||||||
src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj
|
src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj
|
||||||
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
src/Org.OpenAPITools/Api/AnotherFakeApi.cs
|
||||||
src/Org.OpenAPITools/Api/DefaultApi.cs
|
src/Org.OpenAPITools/Api/DefaultApi.cs
|
||||||
@ -130,6 +134,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
|
|||||||
src/Org.OpenAPITools/Model/ClassModel.cs
|
src/Org.OpenAPITools/Model/ClassModel.cs
|
||||||
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/DanishPig.cs
|
src/Org.OpenAPITools/Model/DanishPig.cs
|
||||||
|
src/Org.OpenAPITools/Model/DeprecatedObject.cs
|
||||||
src/Org.OpenAPITools/Model/Dog.cs
|
src/Org.OpenAPITools/Model/Dog.cs
|
||||||
src/Org.OpenAPITools/Model/DogAllOf.cs
|
src/Org.OpenAPITools/Model/DogAllOf.cs
|
||||||
src/Org.OpenAPITools/Model/Drawing.cs
|
src/Org.OpenAPITools/Model/Drawing.cs
|
||||||
@ -159,6 +164,7 @@ src/Org.OpenAPITools/Model/Name.cs
|
|||||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||||
src/Org.OpenAPITools/Model/NullableShape.cs
|
src/Org.OpenAPITools/Model/NullableShape.cs
|
||||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||||
|
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
|
||||||
src/Org.OpenAPITools/Model/Order.cs
|
src/Org.OpenAPITools/Model/Order.cs
|
||||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||||
src/Org.OpenAPITools/Model/OuterEnum.cs
|
src/Org.OpenAPITools/Model/OuterEnum.cs
|
||||||
|
@ -167,6 +167,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.ClassModel](docs/ClassModel.md)
|
- [Model.ClassModel](docs/ClassModel.md)
|
||||||
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
||||||
- [Model.DanishPig](docs/DanishPig.md)
|
- [Model.DanishPig](docs/DanishPig.md)
|
||||||
|
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
|
||||||
- [Model.Dog](docs/Dog.md)
|
- [Model.Dog](docs/Dog.md)
|
||||||
- [Model.DogAllOf](docs/DogAllOf.md)
|
- [Model.DogAllOf](docs/DogAllOf.md)
|
||||||
- [Model.Drawing](docs/Drawing.md)
|
- [Model.Drawing](docs/Drawing.md)
|
||||||
@ -196,6 +197,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.NullableClass](docs/NullableClass.md)
|
- [Model.NullableClass](docs/NullableClass.md)
|
||||||
- [Model.NullableShape](docs/NullableShape.md)
|
- [Model.NullableShape](docs/NullableShape.md)
|
||||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
|
||||||
- [Model.Order](docs/Order.md)
|
- [Model.Order](docs/Order.md)
|
||||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
- [Model.OuterEnum](docs/OuterEnum.md)
|
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.DeprecatedObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Name** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
# Org.OpenAPITools.Model.ObjectWithDeprecatedFields
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Uuid** | **string** | | [optional]
|
||||||
|
**Id** | **decimal** | | [optional]
|
||||||
|
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||||
|
**Bars** | **List<string>** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class DeprecatedObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for DeprecatedObject
|
||||||
|
//private DeprecatedObject instance;
|
||||||
|
|
||||||
|
public DeprecatedObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of DeprecatedObject
|
||||||
|
//instance = new DeprecatedObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" DeprecatedObject
|
||||||
|
//Assert.IsType<DeprecatedObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Name'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Name'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class ObjectWithDeprecatedFieldsTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ObjectWithDeprecatedFields
|
||||||
|
//private ObjectWithDeprecatedFields instance;
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFieldsTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ObjectWithDeprecatedFields
|
||||||
|
//instance = new ObjectWithDeprecatedFields();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ObjectWithDeprecatedFieldsInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" ObjectWithDeprecatedFields
|
||||||
|
//Assert.IsType<ObjectWithDeprecatedFields>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Uuid'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UuidTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Uuid'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Id'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void IdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Id'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'DeprecatedRef'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedRefTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'DeprecatedRef'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Bars'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void BarsTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Bars'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,146 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "DeprecatedObject")]
|
||||||
|
public partial class DeprecatedObject : IEquatable<DeprecatedObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DeprecatedObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="name">name.</param>
|
||||||
|
public DeprecatedObject(string name = default(string))
|
||||||
|
{
|
||||||
|
this._Name = name;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Name
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||||
|
public string Name
|
||||||
|
{
|
||||||
|
get{ return _Name;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Name = value;
|
||||||
|
_flagName = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private string _Name;
|
||||||
|
private bool _flagName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as Name should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeName()
|
||||||
|
{
|
||||||
|
return _flagName;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class DeprecatedObject {\n");
|
||||||
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as DeprecatedObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if DeprecatedObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of DeprecatedObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(DeprecatedObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Name != null)
|
||||||
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,232 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "ObjectWithDeprecatedFields")]
|
||||||
|
public partial class ObjectWithDeprecatedFields : IEquatable<ObjectWithDeprecatedFields>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="ObjectWithDeprecatedFields" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="uuid">uuid.</param>
|
||||||
|
/// <param name="id">id.</param>
|
||||||
|
/// <param name="deprecatedRef">deprecatedRef.</param>
|
||||||
|
/// <param name="bars">bars.</param>
|
||||||
|
public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List<string> bars = default(List<string>))
|
||||||
|
{
|
||||||
|
this._Uuid = uuid;
|
||||||
|
this._Id = id;
|
||||||
|
this._DeprecatedRef = deprecatedRef;
|
||||||
|
this._Bars = bars;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Uuid
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||||
|
public string Uuid
|
||||||
|
{
|
||||||
|
get{ return _Uuid;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Uuid = value;
|
||||||
|
_flagUuid = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private string _Uuid;
|
||||||
|
private bool _flagUuid;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as Uuid should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeUuid()
|
||||||
|
{
|
||||||
|
return _flagUuid;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Id
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||||
|
public decimal Id
|
||||||
|
{
|
||||||
|
get{ return _Id;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Id = value;
|
||||||
|
_flagId = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private decimal _Id;
|
||||||
|
private bool _flagId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as Id should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeId()
|
||||||
|
{
|
||||||
|
return _flagId;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets DeprecatedRef
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "deprecatedRef", EmitDefaultValue = false)]
|
||||||
|
public DeprecatedObject DeprecatedRef
|
||||||
|
{
|
||||||
|
get{ return _DeprecatedRef;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_DeprecatedRef = value;
|
||||||
|
_flagDeprecatedRef = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private DeprecatedObject _DeprecatedRef;
|
||||||
|
private bool _flagDeprecatedRef;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as DeprecatedRef should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeDeprecatedRef()
|
||||||
|
{
|
||||||
|
return _flagDeprecatedRef;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Bars
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "bars", EmitDefaultValue = false)]
|
||||||
|
public List<string> Bars
|
||||||
|
{
|
||||||
|
get{ return _Bars;}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Bars = value;
|
||||||
|
_flagBars = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private List<string> _Bars;
|
||||||
|
private bool _flagBars;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns false as Bars should not be serialized given that it's read-only.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>false (boolean)</returns>
|
||||||
|
public bool ShouldSerializeBars()
|
||||||
|
{
|
||||||
|
return _flagBars;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class ObjectWithDeprecatedFields {\n");
|
||||||
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
|
sb.Append(" DeprecatedRef: ").Append(DeprecatedRef).Append("\n");
|
||||||
|
sb.Append(" Bars: ").Append(Bars).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as ObjectWithDeprecatedFields).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if ObjectWithDeprecatedFields instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of ObjectWithDeprecatedFields to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(ObjectWithDeprecatedFields input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Uuid != null)
|
||||||
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
|
if (this.DeprecatedRef != null)
|
||||||
|
hashCode = hashCode * 59 + this.DeprecatedRef.GetHashCode();
|
||||||
|
if (this.Bars != null)
|
||||||
|
hashCode = hashCode * 59 + this.Bars.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -24,6 +24,7 @@ docs/ClassModel.md
|
|||||||
docs/ComplexQuadrilateral.md
|
docs/ComplexQuadrilateral.md
|
||||||
docs/DanishPig.md
|
docs/DanishPig.md
|
||||||
docs/DefaultApi.md
|
docs/DefaultApi.md
|
||||||
|
docs/DeprecatedObject.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/Drawing.md
|
docs/Drawing.md
|
||||||
@ -55,6 +56,7 @@ docs/Name.md
|
|||||||
docs/NullableClass.md
|
docs/NullableClass.md
|
||||||
docs/NullableShape.md
|
docs/NullableShape.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
|
docs/ObjectWithDeprecatedFields.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
@ -130,6 +132,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
|
|||||||
src/Org.OpenAPITools/Model/ClassModel.cs
|
src/Org.OpenAPITools/Model/ClassModel.cs
|
||||||
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/DanishPig.cs
|
src/Org.OpenAPITools/Model/DanishPig.cs
|
||||||
|
src/Org.OpenAPITools/Model/DeprecatedObject.cs
|
||||||
src/Org.OpenAPITools/Model/Dog.cs
|
src/Org.OpenAPITools/Model/Dog.cs
|
||||||
src/Org.OpenAPITools/Model/DogAllOf.cs
|
src/Org.OpenAPITools/Model/DogAllOf.cs
|
||||||
src/Org.OpenAPITools/Model/Drawing.cs
|
src/Org.OpenAPITools/Model/Drawing.cs
|
||||||
@ -159,6 +162,7 @@ src/Org.OpenAPITools/Model/Name.cs
|
|||||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||||
src/Org.OpenAPITools/Model/NullableShape.cs
|
src/Org.OpenAPITools/Model/NullableShape.cs
|
||||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||||
|
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
|
||||||
src/Org.OpenAPITools/Model/Order.cs
|
src/Org.OpenAPITools/Model/Order.cs
|
||||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||||
src/Org.OpenAPITools/Model/OuterEnum.cs
|
src/Org.OpenAPITools/Model/OuterEnum.cs
|
||||||
|
@ -192,6 +192,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.ClassModel](docs/ClassModel.md)
|
- [Model.ClassModel](docs/ClassModel.md)
|
||||||
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
||||||
- [Model.DanishPig](docs/DanishPig.md)
|
- [Model.DanishPig](docs/DanishPig.md)
|
||||||
|
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
|
||||||
- [Model.Dog](docs/Dog.md)
|
- [Model.Dog](docs/Dog.md)
|
||||||
- [Model.DogAllOf](docs/DogAllOf.md)
|
- [Model.DogAllOf](docs/DogAllOf.md)
|
||||||
- [Model.Drawing](docs/Drawing.md)
|
- [Model.Drawing](docs/Drawing.md)
|
||||||
@ -221,6 +222,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.NullableClass](docs/NullableClass.md)
|
- [Model.NullableClass](docs/NullableClass.md)
|
||||||
- [Model.NullableShape](docs/NullableShape.md)
|
- [Model.NullableShape](docs/NullableShape.md)
|
||||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
|
||||||
- [Model.Order](docs/Order.md)
|
- [Model.Order](docs/Order.md)
|
||||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
- [Model.OuterEnum](docs/OuterEnum.md)
|
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.DeprecatedObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Name** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
# Org.OpenAPITools.Model.ObjectWithDeprecatedFields
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Uuid** | **string** | | [optional]
|
||||||
|
**Id** | **decimal** | | [optional]
|
||||||
|
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||||
|
**Bars** | **List<string>** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class DeprecatedObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for DeprecatedObject
|
||||||
|
//private DeprecatedObject instance;
|
||||||
|
|
||||||
|
public DeprecatedObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of DeprecatedObject
|
||||||
|
//instance = new DeprecatedObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" DeprecatedObject
|
||||||
|
//Assert.IsType<DeprecatedObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Name'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Name'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class ObjectWithDeprecatedFieldsTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ObjectWithDeprecatedFields
|
||||||
|
//private ObjectWithDeprecatedFields instance;
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFieldsTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ObjectWithDeprecatedFields
|
||||||
|
//instance = new ObjectWithDeprecatedFields();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ObjectWithDeprecatedFieldsInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" ObjectWithDeprecatedFields
|
||||||
|
//Assert.IsType<ObjectWithDeprecatedFields>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Uuid'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UuidTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Uuid'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Id'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void IdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Id'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'DeprecatedRef'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedRefTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'DeprecatedRef'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Bars'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void BarsTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Bars'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,129 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using FileParameter = Org.OpenAPITools.Client.FileParameter;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "DeprecatedObject")]
|
||||||
|
public partial class DeprecatedObject : IEquatable<DeprecatedObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DeprecatedObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="name">name.</param>
|
||||||
|
public DeprecatedObject(string name = default(string))
|
||||||
|
{
|
||||||
|
this.Name = name;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Name
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class DeprecatedObject {\n");
|
||||||
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as DeprecatedObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if DeprecatedObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of DeprecatedObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(DeprecatedObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Name != null)
|
||||||
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,161 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using FileParameter = Org.OpenAPITools.Client.FileParameter;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "ObjectWithDeprecatedFields")]
|
||||||
|
public partial class ObjectWithDeprecatedFields : IEquatable<ObjectWithDeprecatedFields>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="ObjectWithDeprecatedFields" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="uuid">uuid.</param>
|
||||||
|
/// <param name="id">id.</param>
|
||||||
|
/// <param name="deprecatedRef">deprecatedRef.</param>
|
||||||
|
/// <param name="bars">bars.</param>
|
||||||
|
public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List<string> bars = default(List<string>))
|
||||||
|
{
|
||||||
|
this.Uuid = uuid;
|
||||||
|
this.Id = id;
|
||||||
|
this.DeprecatedRef = deprecatedRef;
|
||||||
|
this.Bars = bars;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Uuid
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||||
|
public string Uuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Id
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||||
|
public decimal Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets DeprecatedRef
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "deprecatedRef", EmitDefaultValue = false)]
|
||||||
|
public DeprecatedObject DeprecatedRef { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Bars
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "bars", EmitDefaultValue = false)]
|
||||||
|
public List<string> Bars { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class ObjectWithDeprecatedFields {\n");
|
||||||
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
|
sb.Append(" DeprecatedRef: ").Append(DeprecatedRef).Append("\n");
|
||||||
|
sb.Append(" Bars: ").Append(Bars).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as ObjectWithDeprecatedFields).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if ObjectWithDeprecatedFields instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of ObjectWithDeprecatedFields to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(ObjectWithDeprecatedFields input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Uuid != null)
|
||||||
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
|
if (this.DeprecatedRef != null)
|
||||||
|
hashCode = hashCode * 59 + this.DeprecatedRef.GetHashCode();
|
||||||
|
if (this.Bars != null)
|
||||||
|
hashCode = hashCode * 59 + this.Bars.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -24,6 +24,7 @@ docs/ClassModel.md
|
|||||||
docs/ComplexQuadrilateral.md
|
docs/ComplexQuadrilateral.md
|
||||||
docs/DanishPig.md
|
docs/DanishPig.md
|
||||||
docs/DefaultApi.md
|
docs/DefaultApi.md
|
||||||
|
docs/DeprecatedObject.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/Drawing.md
|
docs/Drawing.md
|
||||||
@ -55,6 +56,7 @@ docs/Name.md
|
|||||||
docs/NullableClass.md
|
docs/NullableClass.md
|
||||||
docs/NullableShape.md
|
docs/NullableShape.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
|
docs/ObjectWithDeprecatedFields.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
@ -130,6 +132,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
|
|||||||
src/Org.OpenAPITools/Model/ClassModel.cs
|
src/Org.OpenAPITools/Model/ClassModel.cs
|
||||||
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/DanishPig.cs
|
src/Org.OpenAPITools/Model/DanishPig.cs
|
||||||
|
src/Org.OpenAPITools/Model/DeprecatedObject.cs
|
||||||
src/Org.OpenAPITools/Model/Dog.cs
|
src/Org.OpenAPITools/Model/Dog.cs
|
||||||
src/Org.OpenAPITools/Model/DogAllOf.cs
|
src/Org.OpenAPITools/Model/DogAllOf.cs
|
||||||
src/Org.OpenAPITools/Model/Drawing.cs
|
src/Org.OpenAPITools/Model/Drawing.cs
|
||||||
@ -159,6 +162,7 @@ src/Org.OpenAPITools/Model/Name.cs
|
|||||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||||
src/Org.OpenAPITools/Model/NullableShape.cs
|
src/Org.OpenAPITools/Model/NullableShape.cs
|
||||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||||
|
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
|
||||||
src/Org.OpenAPITools/Model/Order.cs
|
src/Org.OpenAPITools/Model/Order.cs
|
||||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||||
src/Org.OpenAPITools/Model/OuterEnum.cs
|
src/Org.OpenAPITools/Model/OuterEnum.cs
|
||||||
|
@ -179,6 +179,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.ClassModel](docs/ClassModel.md)
|
- [Model.ClassModel](docs/ClassModel.md)
|
||||||
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
||||||
- [Model.DanishPig](docs/DanishPig.md)
|
- [Model.DanishPig](docs/DanishPig.md)
|
||||||
|
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
|
||||||
- [Model.Dog](docs/Dog.md)
|
- [Model.Dog](docs/Dog.md)
|
||||||
- [Model.DogAllOf](docs/DogAllOf.md)
|
- [Model.DogAllOf](docs/DogAllOf.md)
|
||||||
- [Model.Drawing](docs/Drawing.md)
|
- [Model.Drawing](docs/Drawing.md)
|
||||||
@ -208,6 +209,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.NullableClass](docs/NullableClass.md)
|
- [Model.NullableClass](docs/NullableClass.md)
|
||||||
- [Model.NullableShape](docs/NullableShape.md)
|
- [Model.NullableShape](docs/NullableShape.md)
|
||||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
|
||||||
- [Model.Order](docs/Order.md)
|
- [Model.Order](docs/Order.md)
|
||||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
- [Model.OuterEnum](docs/OuterEnum.md)
|
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.DeprecatedObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Name** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
# Org.OpenAPITools.Model.ObjectWithDeprecatedFields
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Uuid** | **string** | | [optional]
|
||||||
|
**Id** | **decimal** | | [optional]
|
||||||
|
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||||
|
**Bars** | **List<string>** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class DeprecatedObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for DeprecatedObject
|
||||||
|
//private DeprecatedObject instance;
|
||||||
|
|
||||||
|
public DeprecatedObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of DeprecatedObject
|
||||||
|
//instance = new DeprecatedObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" DeprecatedObject
|
||||||
|
//Assert.IsType<DeprecatedObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Name'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Name'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class ObjectWithDeprecatedFieldsTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ObjectWithDeprecatedFields
|
||||||
|
//private ObjectWithDeprecatedFields instance;
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFieldsTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ObjectWithDeprecatedFields
|
||||||
|
//instance = new ObjectWithDeprecatedFields();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ObjectWithDeprecatedFieldsInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" ObjectWithDeprecatedFields
|
||||||
|
//Assert.IsType<ObjectWithDeprecatedFields>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Uuid'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UuidTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Uuid'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Id'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void IdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Id'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'DeprecatedRef'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedRefTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'DeprecatedRef'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Bars'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void BarsTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Bars'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,128 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "DeprecatedObject")]
|
||||||
|
public partial class DeprecatedObject : IEquatable<DeprecatedObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DeprecatedObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="name">name.</param>
|
||||||
|
public DeprecatedObject(string name = default(string))
|
||||||
|
{
|
||||||
|
this.Name = name;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Name
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class DeprecatedObject {\n");
|
||||||
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as DeprecatedObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if DeprecatedObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of DeprecatedObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(DeprecatedObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Name != null)
|
||||||
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,160 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "ObjectWithDeprecatedFields")]
|
||||||
|
public partial class ObjectWithDeprecatedFields : IEquatable<ObjectWithDeprecatedFields>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="ObjectWithDeprecatedFields" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="uuid">uuid.</param>
|
||||||
|
/// <param name="id">id.</param>
|
||||||
|
/// <param name="deprecatedRef">deprecatedRef.</param>
|
||||||
|
/// <param name="bars">bars.</param>
|
||||||
|
public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List<string> bars = default(List<string>))
|
||||||
|
{
|
||||||
|
this.Uuid = uuid;
|
||||||
|
this.Id = id;
|
||||||
|
this.DeprecatedRef = deprecatedRef;
|
||||||
|
this.Bars = bars;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Uuid
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||||
|
public string Uuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Id
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||||
|
public decimal Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets DeprecatedRef
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "deprecatedRef", EmitDefaultValue = false)]
|
||||||
|
public DeprecatedObject DeprecatedRef { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Bars
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "bars", EmitDefaultValue = false)]
|
||||||
|
public List<string> Bars { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class ObjectWithDeprecatedFields {\n");
|
||||||
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
|
sb.Append(" DeprecatedRef: ").Append(DeprecatedRef).Append("\n");
|
||||||
|
sb.Append(" Bars: ").Append(Bars).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as ObjectWithDeprecatedFields).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if ObjectWithDeprecatedFields instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of ObjectWithDeprecatedFields to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(ObjectWithDeprecatedFields input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Uuid != null)
|
||||||
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
|
if (this.DeprecatedRef != null)
|
||||||
|
hashCode = hashCode * 59 + this.DeprecatedRef.GetHashCode();
|
||||||
|
if (this.Bars != null)
|
||||||
|
hashCode = hashCode * 59 + this.Bars.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -24,6 +24,7 @@ docs/ClassModel.md
|
|||||||
docs/ComplexQuadrilateral.md
|
docs/ComplexQuadrilateral.md
|
||||||
docs/DanishPig.md
|
docs/DanishPig.md
|
||||||
docs/DefaultApi.md
|
docs/DefaultApi.md
|
||||||
|
docs/DeprecatedObject.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/Drawing.md
|
docs/Drawing.md
|
||||||
@ -55,6 +56,7 @@ docs/Name.md
|
|||||||
docs/NullableClass.md
|
docs/NullableClass.md
|
||||||
docs/NullableShape.md
|
docs/NullableShape.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
|
docs/ObjectWithDeprecatedFields.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
@ -130,6 +132,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
|
|||||||
src/Org.OpenAPITools/Model/ClassModel.cs
|
src/Org.OpenAPITools/Model/ClassModel.cs
|
||||||
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/DanishPig.cs
|
src/Org.OpenAPITools/Model/DanishPig.cs
|
||||||
|
src/Org.OpenAPITools/Model/DeprecatedObject.cs
|
||||||
src/Org.OpenAPITools/Model/Dog.cs
|
src/Org.OpenAPITools/Model/Dog.cs
|
||||||
src/Org.OpenAPITools/Model/DogAllOf.cs
|
src/Org.OpenAPITools/Model/DogAllOf.cs
|
||||||
src/Org.OpenAPITools/Model/Drawing.cs
|
src/Org.OpenAPITools/Model/Drawing.cs
|
||||||
@ -159,6 +162,7 @@ src/Org.OpenAPITools/Model/Name.cs
|
|||||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||||
src/Org.OpenAPITools/Model/NullableShape.cs
|
src/Org.OpenAPITools/Model/NullableShape.cs
|
||||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||||
|
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
|
||||||
src/Org.OpenAPITools/Model/Order.cs
|
src/Org.OpenAPITools/Model/Order.cs
|
||||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||||
src/Org.OpenAPITools/Model/OuterEnum.cs
|
src/Org.OpenAPITools/Model/OuterEnum.cs
|
||||||
|
@ -179,6 +179,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.ClassModel](docs/ClassModel.md)
|
- [Model.ClassModel](docs/ClassModel.md)
|
||||||
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
||||||
- [Model.DanishPig](docs/DanishPig.md)
|
- [Model.DanishPig](docs/DanishPig.md)
|
||||||
|
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
|
||||||
- [Model.Dog](docs/Dog.md)
|
- [Model.Dog](docs/Dog.md)
|
||||||
- [Model.DogAllOf](docs/DogAllOf.md)
|
- [Model.DogAllOf](docs/DogAllOf.md)
|
||||||
- [Model.Drawing](docs/Drawing.md)
|
- [Model.Drawing](docs/Drawing.md)
|
||||||
@ -208,6 +209,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.NullableClass](docs/NullableClass.md)
|
- [Model.NullableClass](docs/NullableClass.md)
|
||||||
- [Model.NullableShape](docs/NullableShape.md)
|
- [Model.NullableShape](docs/NullableShape.md)
|
||||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
|
||||||
- [Model.Order](docs/Order.md)
|
- [Model.Order](docs/Order.md)
|
||||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
- [Model.OuterEnum](docs/OuterEnum.md)
|
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.DeprecatedObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Name** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
# Org.OpenAPITools.Model.ObjectWithDeprecatedFields
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Uuid** | **string** | | [optional]
|
||||||
|
**Id** | **decimal** | | [optional]
|
||||||
|
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||||
|
**Bars** | **List<string>** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class DeprecatedObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for DeprecatedObject
|
||||||
|
//private DeprecatedObject instance;
|
||||||
|
|
||||||
|
public DeprecatedObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of DeprecatedObject
|
||||||
|
//instance = new DeprecatedObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" DeprecatedObject
|
||||||
|
//Assert.IsType<DeprecatedObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Name'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Name'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class ObjectWithDeprecatedFieldsTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ObjectWithDeprecatedFields
|
||||||
|
//private ObjectWithDeprecatedFields instance;
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFieldsTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ObjectWithDeprecatedFields
|
||||||
|
//instance = new ObjectWithDeprecatedFields();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ObjectWithDeprecatedFieldsInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" ObjectWithDeprecatedFields
|
||||||
|
//Assert.IsType<ObjectWithDeprecatedFields>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Uuid'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UuidTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Uuid'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Id'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void IdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Id'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'DeprecatedRef'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedRefTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'DeprecatedRef'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Bars'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void BarsTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Bars'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,128 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "DeprecatedObject")]
|
||||||
|
public partial class DeprecatedObject : IEquatable<DeprecatedObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DeprecatedObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="name">name.</param>
|
||||||
|
public DeprecatedObject(string name = default(string))
|
||||||
|
{
|
||||||
|
this.Name = name;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Name
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class DeprecatedObject {\n");
|
||||||
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as DeprecatedObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if DeprecatedObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of DeprecatedObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(DeprecatedObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Name != null)
|
||||||
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,160 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "ObjectWithDeprecatedFields")]
|
||||||
|
public partial class ObjectWithDeprecatedFields : IEquatable<ObjectWithDeprecatedFields>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="ObjectWithDeprecatedFields" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="uuid">uuid.</param>
|
||||||
|
/// <param name="id">id.</param>
|
||||||
|
/// <param name="deprecatedRef">deprecatedRef.</param>
|
||||||
|
/// <param name="bars">bars.</param>
|
||||||
|
public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List<string> bars = default(List<string>))
|
||||||
|
{
|
||||||
|
this.Uuid = uuid;
|
||||||
|
this.Id = id;
|
||||||
|
this.DeprecatedRef = deprecatedRef;
|
||||||
|
this.Bars = bars;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Uuid
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||||
|
public string Uuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Id
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||||
|
public decimal Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets DeprecatedRef
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "deprecatedRef", EmitDefaultValue = false)]
|
||||||
|
public DeprecatedObject DeprecatedRef { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Bars
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "bars", EmitDefaultValue = false)]
|
||||||
|
public List<string> Bars { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class ObjectWithDeprecatedFields {\n");
|
||||||
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
|
sb.Append(" DeprecatedRef: ").Append(DeprecatedRef).Append("\n");
|
||||||
|
sb.Append(" Bars: ").Append(Bars).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as ObjectWithDeprecatedFields).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if ObjectWithDeprecatedFields instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of ObjectWithDeprecatedFields to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(ObjectWithDeprecatedFields input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Uuid != null)
|
||||||
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
|
if (this.DeprecatedRef != null)
|
||||||
|
hashCode = hashCode * 59 + this.DeprecatedRef.GetHashCode();
|
||||||
|
if (this.Bars != null)
|
||||||
|
hashCode = hashCode * 59 + this.Bars.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -24,6 +24,7 @@ docs/ClassModel.md
|
|||||||
docs/ComplexQuadrilateral.md
|
docs/ComplexQuadrilateral.md
|
||||||
docs/DanishPig.md
|
docs/DanishPig.md
|
||||||
docs/DefaultApi.md
|
docs/DefaultApi.md
|
||||||
|
docs/DeprecatedObject.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/Drawing.md
|
docs/Drawing.md
|
||||||
@ -55,6 +56,7 @@ docs/Name.md
|
|||||||
docs/NullableClass.md
|
docs/NullableClass.md
|
||||||
docs/NullableShape.md
|
docs/NullableShape.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
|
docs/ObjectWithDeprecatedFields.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
@ -129,6 +131,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
|
|||||||
src/Org.OpenAPITools/Model/ClassModel.cs
|
src/Org.OpenAPITools/Model/ClassModel.cs
|
||||||
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/DanishPig.cs
|
src/Org.OpenAPITools/Model/DanishPig.cs
|
||||||
|
src/Org.OpenAPITools/Model/DeprecatedObject.cs
|
||||||
src/Org.OpenAPITools/Model/Dog.cs
|
src/Org.OpenAPITools/Model/Dog.cs
|
||||||
src/Org.OpenAPITools/Model/DogAllOf.cs
|
src/Org.OpenAPITools/Model/DogAllOf.cs
|
||||||
src/Org.OpenAPITools/Model/Drawing.cs
|
src/Org.OpenAPITools/Model/Drawing.cs
|
||||||
@ -158,6 +161,7 @@ src/Org.OpenAPITools/Model/Name.cs
|
|||||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||||
src/Org.OpenAPITools/Model/NullableShape.cs
|
src/Org.OpenAPITools/Model/NullableShape.cs
|
||||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||||
|
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
|
||||||
src/Org.OpenAPITools/Model/Order.cs
|
src/Org.OpenAPITools/Model/Order.cs
|
||||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||||
src/Org.OpenAPITools/Model/OuterEnum.cs
|
src/Org.OpenAPITools/Model/OuterEnum.cs
|
||||||
|
@ -167,6 +167,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.ClassModel](docs/ClassModel.md)
|
- [Model.ClassModel](docs/ClassModel.md)
|
||||||
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
||||||
- [Model.DanishPig](docs/DanishPig.md)
|
- [Model.DanishPig](docs/DanishPig.md)
|
||||||
|
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
|
||||||
- [Model.Dog](docs/Dog.md)
|
- [Model.Dog](docs/Dog.md)
|
||||||
- [Model.DogAllOf](docs/DogAllOf.md)
|
- [Model.DogAllOf](docs/DogAllOf.md)
|
||||||
- [Model.Drawing](docs/Drawing.md)
|
- [Model.Drawing](docs/Drawing.md)
|
||||||
@ -196,6 +197,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.NullableClass](docs/NullableClass.md)
|
- [Model.NullableClass](docs/NullableClass.md)
|
||||||
- [Model.NullableShape](docs/NullableShape.md)
|
- [Model.NullableShape](docs/NullableShape.md)
|
||||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
|
||||||
- [Model.Order](docs/Order.md)
|
- [Model.Order](docs/Order.md)
|
||||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
- [Model.OuterEnum](docs/OuterEnum.md)
|
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.DeprecatedObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Name** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
# Org.OpenAPITools.Model.ObjectWithDeprecatedFields
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Uuid** | **string** | | [optional]
|
||||||
|
**Id** | **decimal** | | [optional]
|
||||||
|
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||||
|
**Bars** | **List<string>** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class DeprecatedObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for DeprecatedObject
|
||||||
|
//private DeprecatedObject instance;
|
||||||
|
|
||||||
|
public DeprecatedObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of DeprecatedObject
|
||||||
|
//instance = new DeprecatedObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" DeprecatedObject
|
||||||
|
//Assert.IsType<DeprecatedObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Name'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Name'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class ObjectWithDeprecatedFieldsTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ObjectWithDeprecatedFields
|
||||||
|
//private ObjectWithDeprecatedFields instance;
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFieldsTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ObjectWithDeprecatedFields
|
||||||
|
//instance = new ObjectWithDeprecatedFields();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ObjectWithDeprecatedFieldsInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" ObjectWithDeprecatedFields
|
||||||
|
//Assert.IsType<ObjectWithDeprecatedFields>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Uuid'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UuidTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Uuid'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Id'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void IdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Id'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'DeprecatedRef'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedRefTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'DeprecatedRef'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Bars'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void BarsTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Bars'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,128 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "DeprecatedObject")]
|
||||||
|
public partial class DeprecatedObject : IEquatable<DeprecatedObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DeprecatedObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="name">name.</param>
|
||||||
|
public DeprecatedObject(string name = default(string))
|
||||||
|
{
|
||||||
|
this.Name = name;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Name
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class DeprecatedObject {\n");
|
||||||
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as DeprecatedObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if DeprecatedObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of DeprecatedObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(DeprecatedObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Name != null)
|
||||||
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,160 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "ObjectWithDeprecatedFields")]
|
||||||
|
public partial class ObjectWithDeprecatedFields : IEquatable<ObjectWithDeprecatedFields>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="ObjectWithDeprecatedFields" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="uuid">uuid.</param>
|
||||||
|
/// <param name="id">id.</param>
|
||||||
|
/// <param name="deprecatedRef">deprecatedRef.</param>
|
||||||
|
/// <param name="bars">bars.</param>
|
||||||
|
public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List<string> bars = default(List<string>))
|
||||||
|
{
|
||||||
|
this.Uuid = uuid;
|
||||||
|
this.Id = id;
|
||||||
|
this.DeprecatedRef = deprecatedRef;
|
||||||
|
this.Bars = bars;
|
||||||
|
this.AdditionalProperties = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Uuid
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||||
|
public string Uuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Id
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||||
|
public decimal Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets DeprecatedRef
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "deprecatedRef", EmitDefaultValue = false)]
|
||||||
|
public DeprecatedObject DeprecatedRef { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Bars
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "bars", EmitDefaultValue = false)]
|
||||||
|
public List<string> Bars { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets additional properties
|
||||||
|
/// </summary>
|
||||||
|
[JsonExtensionData]
|
||||||
|
public IDictionary<string, object> AdditionalProperties { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class ObjectWithDeprecatedFields {\n");
|
||||||
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
|
sb.Append(" DeprecatedRef: ").Append(DeprecatedRef).Append("\n");
|
||||||
|
sb.Append(" Bars: ").Append(Bars).Append("\n");
|
||||||
|
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as ObjectWithDeprecatedFields).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if ObjectWithDeprecatedFields instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of ObjectWithDeprecatedFields to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(ObjectWithDeprecatedFields input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Uuid != null)
|
||||||
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
|
if (this.DeprecatedRef != null)
|
||||||
|
hashCode = hashCode * 59 + this.DeprecatedRef.GetHashCode();
|
||||||
|
if (this.Bars != null)
|
||||||
|
hashCode = hashCode * 59 + this.Bars.GetHashCode();
|
||||||
|
if (this.AdditionalProperties != null)
|
||||||
|
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -24,6 +24,7 @@ docs/ClassModel.md
|
|||||||
docs/ComplexQuadrilateral.md
|
docs/ComplexQuadrilateral.md
|
||||||
docs/DanishPig.md
|
docs/DanishPig.md
|
||||||
docs/DefaultApi.md
|
docs/DefaultApi.md
|
||||||
|
docs/DeprecatedObject.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/Drawing.md
|
docs/Drawing.md
|
||||||
@ -55,6 +56,7 @@ docs/Name.md
|
|||||||
docs/NullableClass.md
|
docs/NullableClass.md
|
||||||
docs/NullableShape.md
|
docs/NullableShape.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
|
docs/ObjectWithDeprecatedFields.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
@ -129,6 +131,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
|
|||||||
src/Org.OpenAPITools/Model/ClassModel.cs
|
src/Org.OpenAPITools/Model/ClassModel.cs
|
||||||
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
|
||||||
src/Org.OpenAPITools/Model/DanishPig.cs
|
src/Org.OpenAPITools/Model/DanishPig.cs
|
||||||
|
src/Org.OpenAPITools/Model/DeprecatedObject.cs
|
||||||
src/Org.OpenAPITools/Model/Dog.cs
|
src/Org.OpenAPITools/Model/Dog.cs
|
||||||
src/Org.OpenAPITools/Model/DogAllOf.cs
|
src/Org.OpenAPITools/Model/DogAllOf.cs
|
||||||
src/Org.OpenAPITools/Model/Drawing.cs
|
src/Org.OpenAPITools/Model/Drawing.cs
|
||||||
@ -158,6 +161,7 @@ src/Org.OpenAPITools/Model/Name.cs
|
|||||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||||
src/Org.OpenAPITools/Model/NullableShape.cs
|
src/Org.OpenAPITools/Model/NullableShape.cs
|
||||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||||
|
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
|
||||||
src/Org.OpenAPITools/Model/Order.cs
|
src/Org.OpenAPITools/Model/Order.cs
|
||||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||||
src/Org.OpenAPITools/Model/OuterEnum.cs
|
src/Org.OpenAPITools/Model/OuterEnum.cs
|
||||||
|
@ -179,6 +179,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.ClassModel](docs/ClassModel.md)
|
- [Model.ClassModel](docs/ClassModel.md)
|
||||||
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
||||||
- [Model.DanishPig](docs/DanishPig.md)
|
- [Model.DanishPig](docs/DanishPig.md)
|
||||||
|
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
|
||||||
- [Model.Dog](docs/Dog.md)
|
- [Model.Dog](docs/Dog.md)
|
||||||
- [Model.DogAllOf](docs/DogAllOf.md)
|
- [Model.DogAllOf](docs/DogAllOf.md)
|
||||||
- [Model.Drawing](docs/Drawing.md)
|
- [Model.Drawing](docs/Drawing.md)
|
||||||
@ -208,6 +209,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.NullableClass](docs/NullableClass.md)
|
- [Model.NullableClass](docs/NullableClass.md)
|
||||||
- [Model.NullableShape](docs/NullableShape.md)
|
- [Model.NullableShape](docs/NullableShape.md)
|
||||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
|
||||||
- [Model.Order](docs/Order.md)
|
- [Model.Order](docs/Order.md)
|
||||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
- [Model.OuterEnum](docs/OuterEnum.md)
|
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
# Org.OpenAPITools.Model.DeprecatedObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Name** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
# Org.OpenAPITools.Model.ObjectWithDeprecatedFields
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Uuid** | **string** | | [optional]
|
||||||
|
**Id** | **decimal** | | [optional]
|
||||||
|
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||||
|
**Bars** | **List<string>** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class DeprecatedObjectTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for DeprecatedObject
|
||||||
|
//private DeprecatedObject instance;
|
||||||
|
|
||||||
|
public DeprecatedObjectTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of DeprecatedObject
|
||||||
|
//instance = new DeprecatedObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" DeprecatedObject
|
||||||
|
//Assert.IsType<DeprecatedObject>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Name'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Name'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class ObjectWithDeprecatedFieldsTests : IDisposable
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ObjectWithDeprecatedFields
|
||||||
|
//private ObjectWithDeprecatedFields instance;
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFieldsTests()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ObjectWithDeprecatedFields
|
||||||
|
//instance = new ObjectWithDeprecatedFields();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Cleanup when everything is done.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void ObjectWithDeprecatedFieldsInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsType" ObjectWithDeprecatedFields
|
||||||
|
//Assert.IsType<ObjectWithDeprecatedFields>(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Uuid'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void UuidTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Uuid'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Id'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void IdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Id'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'DeprecatedRef'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void DeprecatedRefTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'DeprecatedRef'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Bars'
|
||||||
|
/// </summary>
|
||||||
|
[Fact]
|
||||||
|
public void BarsTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Bars'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,118 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "DeprecatedObject")]
|
||||||
|
public partial class DeprecatedObject : IEquatable<DeprecatedObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DeprecatedObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="name">name.</param>
|
||||||
|
public DeprecatedObject(string name = default(string))
|
||||||
|
{
|
||||||
|
this.Name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Name
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class DeprecatedObject {\n");
|
||||||
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as DeprecatedObject).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if DeprecatedObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of DeprecatedObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(DeprecatedObject input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Name != null)
|
||||||
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,150 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[DataContract(Name = "ObjectWithDeprecatedFields")]
|
||||||
|
public partial class ObjectWithDeprecatedFields : IEquatable<ObjectWithDeprecatedFields>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="ObjectWithDeprecatedFields" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="uuid">uuid.</param>
|
||||||
|
/// <param name="id">id.</param>
|
||||||
|
/// <param name="deprecatedRef">deprecatedRef.</param>
|
||||||
|
/// <param name="bars">bars.</param>
|
||||||
|
public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List<string> bars = default(List<string>))
|
||||||
|
{
|
||||||
|
this.Uuid = uuid;
|
||||||
|
this.Id = id;
|
||||||
|
this.DeprecatedRef = deprecatedRef;
|
||||||
|
this.Bars = bars;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Uuid
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||||
|
public string Uuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Id
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||||
|
public decimal Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets DeprecatedRef
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "deprecatedRef", EmitDefaultValue = false)]
|
||||||
|
public DeprecatedObject DeprecatedRef { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Bars
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name = "bars", EmitDefaultValue = false)]
|
||||||
|
public List<string> Bars { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class ObjectWithDeprecatedFields {\n");
|
||||||
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
|
sb.Append(" DeprecatedRef: ").Append(DeprecatedRef).Append("\n");
|
||||||
|
sb.Append(" Bars: ").Append(Bars).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input as ObjectWithDeprecatedFields).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if ObjectWithDeprecatedFields instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of ObjectWithDeprecatedFields to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(ObjectWithDeprecatedFields input)
|
||||||
|
{
|
||||||
|
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Uuid != null)
|
||||||
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
|
if (this.DeprecatedRef != null)
|
||||||
|
hashCode = hashCode * 59 + this.DeprecatedRef.GetHashCode();
|
||||||
|
if (this.Bars != null)
|
||||||
|
hashCode = hashCode * 59 + this.Bars.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -17,6 +17,7 @@ docs/CatAllOf.md
|
|||||||
docs/Category.md
|
docs/Category.md
|
||||||
docs/ClassModel.md
|
docs/ClassModel.md
|
||||||
docs/DefaultApi.md
|
docs/DefaultApi.md
|
||||||
|
docs/DeprecatedObject.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/EnumArrays.md
|
docs/EnumArrays.md
|
||||||
@ -39,6 +40,7 @@ docs/ModelClient.md
|
|||||||
docs/Name.md
|
docs/Name.md
|
||||||
docs/NullableClass.md
|
docs/NullableClass.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
|
docs/ObjectWithDeprecatedFields.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
@ -85,6 +87,7 @@ src/Org.OpenAPITools/Model/Cat.cs
|
|||||||
src/Org.OpenAPITools/Model/CatAllOf.cs
|
src/Org.OpenAPITools/Model/CatAllOf.cs
|
||||||
src/Org.OpenAPITools/Model/Category.cs
|
src/Org.OpenAPITools/Model/Category.cs
|
||||||
src/Org.OpenAPITools/Model/ClassModel.cs
|
src/Org.OpenAPITools/Model/ClassModel.cs
|
||||||
|
src/Org.OpenAPITools/Model/DeprecatedObject.cs
|
||||||
src/Org.OpenAPITools/Model/Dog.cs
|
src/Org.OpenAPITools/Model/Dog.cs
|
||||||
src/Org.OpenAPITools/Model/DogAllOf.cs
|
src/Org.OpenAPITools/Model/DogAllOf.cs
|
||||||
src/Org.OpenAPITools/Model/EnumArrays.cs
|
src/Org.OpenAPITools/Model/EnumArrays.cs
|
||||||
@ -105,6 +108,7 @@ src/Org.OpenAPITools/Model/ModelClient.cs
|
|||||||
src/Org.OpenAPITools/Model/Name.cs
|
src/Org.OpenAPITools/Model/Name.cs
|
||||||
src/Org.OpenAPITools/Model/NullableClass.cs
|
src/Org.OpenAPITools/Model/NullableClass.cs
|
||||||
src/Org.OpenAPITools/Model/NumberOnly.cs
|
src/Org.OpenAPITools/Model/NumberOnly.cs
|
||||||
|
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
|
||||||
src/Org.OpenAPITools/Model/Order.cs
|
src/Org.OpenAPITools/Model/Order.cs
|
||||||
src/Org.OpenAPITools/Model/OuterComposite.cs
|
src/Org.OpenAPITools/Model/OuterComposite.cs
|
||||||
src/Org.OpenAPITools/Model/OuterEnum.cs
|
src/Org.OpenAPITools/Model/OuterEnum.cs
|
||||||
|
@ -161,6 +161,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.CatAllOf](docs/CatAllOf.md)
|
- [Model.CatAllOf](docs/CatAllOf.md)
|
||||||
- [Model.Category](docs/Category.md)
|
- [Model.Category](docs/Category.md)
|
||||||
- [Model.ClassModel](docs/ClassModel.md)
|
- [Model.ClassModel](docs/ClassModel.md)
|
||||||
|
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
|
||||||
- [Model.Dog](docs/Dog.md)
|
- [Model.Dog](docs/Dog.md)
|
||||||
- [Model.DogAllOf](docs/DogAllOf.md)
|
- [Model.DogAllOf](docs/DogAllOf.md)
|
||||||
- [Model.EnumArrays](docs/EnumArrays.md)
|
- [Model.EnumArrays](docs/EnumArrays.md)
|
||||||
@ -181,6 +182,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [Model.Name](docs/Name.md)
|
- [Model.Name](docs/Name.md)
|
||||||
- [Model.NullableClass](docs/NullableClass.md)
|
- [Model.NullableClass](docs/NullableClass.md)
|
||||||
- [Model.NumberOnly](docs/NumberOnly.md)
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
|
||||||
- [Model.Order](docs/Order.md)
|
- [Model.Order](docs/Order.md)
|
||||||
- [Model.OuterComposite](docs/OuterComposite.md)
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
- [Model.OuterEnum](docs/OuterEnum.md)
|
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
# Org.OpenAPITools.Model.DeprecatedObject
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Name** | **string** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models)
|
||||||
|
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||||
|
[[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
# Org.OpenAPITools.Model.ObjectWithDeprecatedFields
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Uuid** | **string** | | [optional]
|
||||||
|
**Id** | **decimal** | | [optional]
|
||||||
|
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||||
|
**Bars** | **List<string>** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models)
|
||||||
|
[[Back to API list]](../README.md#documentation-for-api-endpoints)
|
||||||
|
[[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,79 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class DeprecatedObjectTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for DeprecatedObject
|
||||||
|
//private DeprecatedObject instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of DeprecatedObject
|
||||||
|
//instance = new DeprecatedObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DeprecatedObjectInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOf" DeprecatedObject
|
||||||
|
//Assert.IsInstanceOf(typeof(DeprecatedObject), instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Name'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Name'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,103 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Org.OpenAPITools.Api;
|
||||||
|
using Org.OpenAPITools.Model;
|
||||||
|
using Org.OpenAPITools.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
public class ObjectWithDeprecatedFieldsTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ObjectWithDeprecatedFields
|
||||||
|
//private ObjectWithDeprecatedFields instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ObjectWithDeprecatedFields
|
||||||
|
//instance = new ObjectWithDeprecatedFields();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ObjectWithDeprecatedFieldsInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOf" ObjectWithDeprecatedFields
|
||||||
|
//Assert.IsInstanceOf(typeof(ObjectWithDeprecatedFields), instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Uuid'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void UuidTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Uuid'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Id'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void IdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Id'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'DeprecatedRef'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DeprecatedRefTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'DeprecatedRef'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Bars'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void BarsTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Bars'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,124 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// DeprecatedObject
|
||||||
|
/// </summary>
|
||||||
|
[DataContract]
|
||||||
|
public partial class DeprecatedObject : IEquatable<DeprecatedObject>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="DeprecatedObject" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="name">name.</param>
|
||||||
|
public DeprecatedObject(string name = default(string))
|
||||||
|
{
|
||||||
|
this.Name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Name
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name="name", EmitDefaultValue=false)]
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class DeprecatedObject {\n");
|
||||||
|
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return this.Equals(input as DeprecatedObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if DeprecatedObject instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of DeprecatedObject to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(DeprecatedObject input)
|
||||||
|
{
|
||||||
|
if (input == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return
|
||||||
|
(
|
||||||
|
this.Name == input.Name ||
|
||||||
|
(this.Name != null &&
|
||||||
|
this.Name.Equals(input.Name))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Name != null)
|
||||||
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,173 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
|
||||||
|
|
||||||
|
namespace Org.OpenAPITools.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// ObjectWithDeprecatedFields
|
||||||
|
/// </summary>
|
||||||
|
[DataContract]
|
||||||
|
public partial class ObjectWithDeprecatedFields : IEquatable<ObjectWithDeprecatedFields>, IValidatableObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="ObjectWithDeprecatedFields" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="uuid">uuid.</param>
|
||||||
|
/// <param name="id">id.</param>
|
||||||
|
/// <param name="deprecatedRef">deprecatedRef.</param>
|
||||||
|
/// <param name="bars">bars.</param>
|
||||||
|
public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List<string> bars = default(List<string>))
|
||||||
|
{
|
||||||
|
this.Uuid = uuid;
|
||||||
|
this.Id = id;
|
||||||
|
this.DeprecatedRef = deprecatedRef;
|
||||||
|
this.Bars = bars;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Uuid
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name="uuid", EmitDefaultValue=false)]
|
||||||
|
public string Uuid { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Id
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||||
|
public decimal Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets DeprecatedRef
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name="deprecatedRef", EmitDefaultValue=false)]
|
||||||
|
public DeprecatedObject DeprecatedRef { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets Bars
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name="bars", EmitDefaultValue=false)]
|
||||||
|
public List<string> Bars { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>String presentation of the object</returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.Append("class ObjectWithDeprecatedFields {\n");
|
||||||
|
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||||
|
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||||
|
sb.Append(" DeprecatedRef: ").Append(DeprecatedRef).Append("\n");
|
||||||
|
sb.Append(" Bars: ").Append(Bars).Append("\n");
|
||||||
|
sb.Append("}\n");
|
||||||
|
return sb.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the JSON string presentation of the object
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
|
public virtual string ToJson()
|
||||||
|
{
|
||||||
|
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if objects are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Object to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public override bool Equals(object input)
|
||||||
|
{
|
||||||
|
return this.Equals(input as ObjectWithDeprecatedFields);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true if ObjectWithDeprecatedFields instances are equal
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="input">Instance of ObjectWithDeprecatedFields to be compared</param>
|
||||||
|
/// <returns>Boolean</returns>
|
||||||
|
public bool Equals(ObjectWithDeprecatedFields input)
|
||||||
|
{
|
||||||
|
if (input == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return
|
||||||
|
(
|
||||||
|
this.Uuid == input.Uuid ||
|
||||||
|
(this.Uuid != null &&
|
||||||
|
this.Uuid.Equals(input.Uuid))
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
this.Id == input.Id ||
|
||||||
|
(this.Id != null &&
|
||||||
|
this.Id.Equals(input.Id))
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
this.DeprecatedRef == input.DeprecatedRef ||
|
||||||
|
(this.DeprecatedRef != null &&
|
||||||
|
this.DeprecatedRef.Equals(input.DeprecatedRef))
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
this.Bars == input.Bars ||
|
||||||
|
this.Bars != null &&
|
||||||
|
input.Bars != null &&
|
||||||
|
this.Bars.SequenceEqual(input.Bars)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the hash code
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Hash code</returns>
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
unchecked // Overflow is fine, just wrap
|
||||||
|
{
|
||||||
|
int hashCode = 41;
|
||||||
|
if (this.Uuid != null)
|
||||||
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
|
if (this.Id != null)
|
||||||
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
|
if (this.DeprecatedRef != null)
|
||||||
|
hashCode = hashCode * 59 + this.DeprecatedRef.GetHashCode();
|
||||||
|
if (this.Bars != null)
|
||||||
|
hashCode = hashCode * 59 + this.Bars.GetHashCode();
|
||||||
|
return hashCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// To validate all properties of the instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="validationContext">Validation context</param>
|
||||||
|
/// <returns>Validation Result</returns>
|
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||||
|
{
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -23,6 +23,7 @@ lib/openapi_petstore/model/cat_all_of.ex
|
|||||||
lib/openapi_petstore/model/category.ex
|
lib/openapi_petstore/model/category.ex
|
||||||
lib/openapi_petstore/model/class_model.ex
|
lib/openapi_petstore/model/class_model.ex
|
||||||
lib/openapi_petstore/model/client.ex
|
lib/openapi_petstore/model/client.ex
|
||||||
|
lib/openapi_petstore/model/deprecated_object.ex
|
||||||
lib/openapi_petstore/model/dog.ex
|
lib/openapi_petstore/model/dog.ex
|
||||||
lib/openapi_petstore/model/dog_all_of.ex
|
lib/openapi_petstore/model/dog_all_of.ex
|
||||||
lib/openapi_petstore/model/enum_arrays.ex
|
lib/openapi_petstore/model/enum_arrays.ex
|
||||||
@ -42,6 +43,7 @@ lib/openapi_petstore/model/model_200_response.ex
|
|||||||
lib/openapi_petstore/model/name.ex
|
lib/openapi_petstore/model/name.ex
|
||||||
lib/openapi_petstore/model/nullable_class.ex
|
lib/openapi_petstore/model/nullable_class.ex
|
||||||
lib/openapi_petstore/model/number_only.ex
|
lib/openapi_petstore/model/number_only.ex
|
||||||
|
lib/openapi_petstore/model/object_with_deprecated_fields.ex
|
||||||
lib/openapi_petstore/model/order.ex
|
lib/openapi_petstore/model/order.ex
|
||||||
lib/openapi_petstore/model/outer_composite.ex
|
lib/openapi_petstore/model/outer_composite.ex
|
||||||
lib/openapi_petstore/model/outer_enum.ex
|
lib/openapi_petstore/model/outer_enum.ex
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
# https://openapi-generator.tech
|
||||||
|
# Do not edit the class manually.
|
||||||
|
|
||||||
|
defmodule OpenapiPetstore.Model.DeprecatedObject do
|
||||||
|
@moduledoc """
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
@derive [Poison.Encoder]
|
||||||
|
defstruct [
|
||||||
|
:"name"
|
||||||
|
]
|
||||||
|
|
||||||
|
@type t :: %__MODULE__{
|
||||||
|
:"name" => String.t | nil
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
defimpl Poison.Decoder, for: OpenapiPetstore.Model.DeprecatedObject do
|
||||||
|
def decode(value, _options) do
|
||||||
|
value
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -0,0 +1,33 @@
|
|||||||
|
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
# https://openapi-generator.tech
|
||||||
|
# Do not edit the class manually.
|
||||||
|
|
||||||
|
defmodule OpenapiPetstore.Model.ObjectWithDeprecatedFields do
|
||||||
|
@moduledoc """
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
@derive [Poison.Encoder]
|
||||||
|
defstruct [
|
||||||
|
:"uuid",
|
||||||
|
:"id",
|
||||||
|
:"deprecatedRef",
|
||||||
|
:"bars"
|
||||||
|
]
|
||||||
|
|
||||||
|
@type t :: %__MODULE__{
|
||||||
|
:"uuid" => String.t | nil,
|
||||||
|
:"id" => float() | nil,
|
||||||
|
:"deprecatedRef" => OpenapiPetstore.Model.DeprecatedObject.t | nil,
|
||||||
|
:"bars" => [OpenapiPetstore.Model.String.t] | nil
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
defimpl Poison.Decoder, for: OpenapiPetstore.Model.ObjectWithDeprecatedFields do
|
||||||
|
import OpenapiPetstore.Deserializer
|
||||||
|
def decode(value, options) do
|
||||||
|
value
|
||||||
|
|> deserialize(:"deprecatedRef", :struct, OpenapiPetstore.Model.DeprecatedObject, options)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -92,7 +92,9 @@ public interface PetApi extends ApiClient.Api {
|
|||||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||||
* @param tags Tags to filter by (required)
|
* @param tags Tags to filter by (required)
|
||||||
* @return Set<Pet>
|
* @return Set<Pet>
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
@RequestLine("GET /pet/findByTags?tags={tags}")
|
@RequestLine("GET /pet/findByTags?tags={tags}")
|
||||||
@Headers({
|
@Headers({
|
||||||
"Accept: application/json",
|
"Accept: application/json",
|
||||||
@ -113,7 +115,9 @@ public interface PetApi extends ApiClient.Api {
|
|||||||
* <li>tags - Tags to filter by (required)</li>
|
* <li>tags - Tags to filter by (required)</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
* @return Set<Pet>
|
* @return Set<Pet>
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
@RequestLine("GET /pet/findByTags?tags={tags}")
|
@RequestLine("GET /pet/findByTags?tags={tags}")
|
||||||
@Headers({
|
@Headers({
|
||||||
"Accept: application/json",
|
"Accept: application/json",
|
||||||
|
@ -2,8 +2,8 @@ package org.openapitools.client.api;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
import org.junit.Before;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -13,11 +13,11 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* API tests for AnotherFakeApi
|
* API tests for AnotherFakeApi
|
||||||
*/
|
*/
|
||||||
public class AnotherFakeApiTest {
|
class AnotherFakeApiTest {
|
||||||
|
|
||||||
private AnotherFakeApi api;
|
private AnotherFakeApi api;
|
||||||
|
|
||||||
@Before
|
@BeforeEach
|
||||||
public void setup() {
|
public void setup() {
|
||||||
api = new ApiClient().buildClient(AnotherFakeApi.class);
|
api = new ApiClient().buildClient(AnotherFakeApi.class);
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ public class AnotherFakeApiTest {
|
|||||||
* To test special tags and operation ID starting with number
|
* To test special tags and operation ID starting with number
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void call123testSpecialTagsTest() {
|
void call123testSpecialTagsTest() {
|
||||||
Client body = null;
|
Client body = null;
|
||||||
// Client response = api.call123testSpecialTags(body);
|
// Client response = api.call123testSpecialTags(body);
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@ import org.threeten.bp.OffsetDateTime;
|
|||||||
import org.openapitools.client.model.OuterComposite;
|
import org.openapitools.client.model.OuterComposite;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
import org.openapitools.client.model.XmlItem;
|
import org.openapitools.client.model.XmlItem;
|
||||||
import org.junit.Before;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -21,11 +21,11 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* API tests for FakeApi
|
* API tests for FakeApi
|
||||||
*/
|
*/
|
||||||
public class FakeApiTest {
|
class FakeApiTest {
|
||||||
|
|
||||||
private FakeApi api;
|
private FakeApi api;
|
||||||
|
|
||||||
@Before
|
@BeforeEach
|
||||||
public void setup() {
|
public void setup() {
|
||||||
api = new ApiClient().buildClient(FakeApi.class);
|
api = new ApiClient().buildClient(FakeApi.class);
|
||||||
}
|
}
|
||||||
@ -37,7 +37,7 @@ public class FakeApiTest {
|
|||||||
* this route creates an XmlItem
|
* this route creates an XmlItem
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void createXmlItemTest() {
|
void createXmlItemTest() {
|
||||||
XmlItem xmlItem = null;
|
XmlItem xmlItem = null;
|
||||||
// api.createXmlItem(xmlItem);
|
// api.createXmlItem(xmlItem);
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ public class FakeApiTest {
|
|||||||
* Test serialization of outer boolean types
|
* Test serialization of outer boolean types
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void fakeOuterBooleanSerializeTest() {
|
void fakeOuterBooleanSerializeTest() {
|
||||||
Boolean body = null;
|
Boolean body = null;
|
||||||
// Boolean response = api.fakeOuterBooleanSerialize(body);
|
// Boolean response = api.fakeOuterBooleanSerialize(body);
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ public class FakeApiTest {
|
|||||||
* Test serialization of object with outer number type
|
* Test serialization of object with outer number type
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void fakeOuterCompositeSerializeTest() {
|
void fakeOuterCompositeSerializeTest() {
|
||||||
OuterComposite body = null;
|
OuterComposite body = null;
|
||||||
// OuterComposite response = api.fakeOuterCompositeSerialize(body);
|
// OuterComposite response = api.fakeOuterCompositeSerialize(body);
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ public class FakeApiTest {
|
|||||||
* Test serialization of outer number types
|
* Test serialization of outer number types
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void fakeOuterNumberSerializeTest() {
|
void fakeOuterNumberSerializeTest() {
|
||||||
BigDecimal body = null;
|
BigDecimal body = null;
|
||||||
// BigDecimal response = api.fakeOuterNumberSerialize(body);
|
// BigDecimal response = api.fakeOuterNumberSerialize(body);
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ public class FakeApiTest {
|
|||||||
* Test serialization of outer string types
|
* Test serialization of outer string types
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void fakeOuterStringSerializeTest() {
|
void fakeOuterStringSerializeTest() {
|
||||||
String body = null;
|
String body = null;
|
||||||
// String response = api.fakeOuterStringSerialize(body);
|
// String response = api.fakeOuterStringSerialize(body);
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ public class FakeApiTest {
|
|||||||
* For this test, the body for this request much reference a schema named `File`.
|
* For this test, the body for this request much reference a schema named `File`.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testBodyWithFileSchemaTest() {
|
void testBodyWithFileSchemaTest() {
|
||||||
FileSchemaTestClass body = null;
|
FileSchemaTestClass body = null;
|
||||||
// api.testBodyWithFileSchema(body);
|
// api.testBodyWithFileSchema(body);
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ public class FakeApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testBodyWithQueryParamsTest() {
|
void testBodyWithQueryParamsTest() {
|
||||||
String query = null;
|
String query = null;
|
||||||
User body = null;
|
User body = null;
|
||||||
// api.testBodyWithQueryParams(query, body);
|
// api.testBodyWithQueryParams(query, body);
|
||||||
@ -138,7 +138,7 @@ public class FakeApiTest {
|
|||||||
* listing them out individually.
|
* listing them out individually.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testBodyWithQueryParamsTestQueryMap() {
|
void testBodyWithQueryParamsTestQueryMap() {
|
||||||
User body = null;
|
User body = null;
|
||||||
FakeApi.TestBodyWithQueryParamsQueryParams queryParams = new FakeApi.TestBodyWithQueryParamsQueryParams()
|
FakeApi.TestBodyWithQueryParamsQueryParams queryParams = new FakeApi.TestBodyWithQueryParamsQueryParams()
|
||||||
.query(null);
|
.query(null);
|
||||||
@ -153,7 +153,7 @@ public class FakeApiTest {
|
|||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testClientModelTest() {
|
void testClientModelTest() {
|
||||||
Client body = null;
|
Client body = null;
|
||||||
// Client response = api.testClientModel(body);
|
// Client response = api.testClientModel(body);
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ public class FakeApiTest {
|
|||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testEndpointParametersTest() {
|
void testEndpointParametersTest() {
|
||||||
BigDecimal number = null;
|
BigDecimal number = null;
|
||||||
Double _double = null;
|
Double _double = null;
|
||||||
String patternWithoutDelimiter = null;
|
String patternWithoutDelimiter = null;
|
||||||
@ -194,7 +194,7 @@ public class FakeApiTest {
|
|||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testEnumParametersTest() {
|
void testEnumParametersTest() {
|
||||||
List<String> enumHeaderStringArray = null;
|
List<String> enumHeaderStringArray = null;
|
||||||
String enumHeaderString = null;
|
String enumHeaderString = null;
|
||||||
List<String> enumQueryStringArray = null;
|
List<String> enumQueryStringArray = null;
|
||||||
@ -217,7 +217,7 @@ public class FakeApiTest {
|
|||||||
* listing them out individually.
|
* listing them out individually.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testEnumParametersTestQueryMap() {
|
void testEnumParametersTestQueryMap() {
|
||||||
List<String> enumHeaderStringArray = null;
|
List<String> enumHeaderStringArray = null;
|
||||||
String enumHeaderString = null;
|
String enumHeaderString = null;
|
||||||
List<String> enumFormStringArray = null;
|
List<String> enumFormStringArray = null;
|
||||||
@ -238,7 +238,7 @@ public class FakeApiTest {
|
|||||||
* Fake endpoint to test group parameters (optional)
|
* Fake endpoint to test group parameters (optional)
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testGroupParametersTest() {
|
void testGroupParametersTest() {
|
||||||
Integer requiredStringGroup = null;
|
Integer requiredStringGroup = null;
|
||||||
Boolean requiredBooleanGroup = null;
|
Boolean requiredBooleanGroup = null;
|
||||||
Long requiredInt64Group = null;
|
Long requiredInt64Group = null;
|
||||||
@ -259,7 +259,7 @@ public class FakeApiTest {
|
|||||||
* listing them out individually.
|
* listing them out individually.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testGroupParametersTestQueryMap() {
|
void testGroupParametersTestQueryMap() {
|
||||||
Boolean requiredBooleanGroup = null;
|
Boolean requiredBooleanGroup = null;
|
||||||
Boolean booleanGroup = null;
|
Boolean booleanGroup = null;
|
||||||
FakeApi.TestGroupParametersQueryParams queryParams = new FakeApi.TestGroupParametersQueryParams()
|
FakeApi.TestGroupParametersQueryParams queryParams = new FakeApi.TestGroupParametersQueryParams()
|
||||||
@ -278,7 +278,7 @@ public class FakeApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testInlineAdditionalPropertiesTest() {
|
void testInlineAdditionalPropertiesTest() {
|
||||||
Map<String, String> param = null;
|
Map<String, String> param = null;
|
||||||
// api.testInlineAdditionalProperties(param);
|
// api.testInlineAdditionalProperties(param);
|
||||||
|
|
||||||
@ -292,7 +292,7 @@ public class FakeApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testJsonFormDataTest() {
|
void testJsonFormDataTest() {
|
||||||
String param = null;
|
String param = null;
|
||||||
String param2 = null;
|
String param2 = null;
|
||||||
// api.testJsonFormData(param, param2);
|
// api.testJsonFormData(param, param2);
|
||||||
@ -307,7 +307,7 @@ public class FakeApiTest {
|
|||||||
* To test the collection format in query parameters
|
* To test the collection format in query parameters
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testQueryParameterCollectionFormatTest() {
|
void testQueryParameterCollectionFormatTest() {
|
||||||
List<String> pipe = null;
|
List<String> pipe = null;
|
||||||
List<String> ioutil = null;
|
List<String> ioutil = null;
|
||||||
List<String> http = null;
|
List<String> http = null;
|
||||||
@ -327,7 +327,7 @@ public class FakeApiTest {
|
|||||||
* listing them out individually.
|
* listing them out individually.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testQueryParameterCollectionFormatTestQueryMap() {
|
void testQueryParameterCollectionFormatTestQueryMap() {
|
||||||
FakeApi.TestQueryParameterCollectionFormatQueryParams queryParams = new FakeApi.TestQueryParameterCollectionFormatQueryParams()
|
FakeApi.TestQueryParameterCollectionFormatQueryParams queryParams = new FakeApi.TestQueryParameterCollectionFormatQueryParams()
|
||||||
.pipe(null)
|
.pipe(null)
|
||||||
.ioutil(null)
|
.ioutil(null)
|
||||||
|
@ -2,8 +2,8 @@ package org.openapitools.client.api;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
import org.junit.Before;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -13,11 +13,11 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* API tests for FakeClassnameTags123Api
|
* API tests for FakeClassnameTags123Api
|
||||||
*/
|
*/
|
||||||
public class FakeClassnameTags123ApiTest {
|
class FakeClassnameTags123ApiTest {
|
||||||
|
|
||||||
private FakeClassnameTags123Api api;
|
private FakeClassnameTags123Api api;
|
||||||
|
|
||||||
@Before
|
@BeforeEach
|
||||||
public void setup() {
|
public void setup() {
|
||||||
api = new ApiClient().buildClient(FakeClassnameTags123Api.class);
|
api = new ApiClient().buildClient(FakeClassnameTags123Api.class);
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ public class FakeClassnameTags123ApiTest {
|
|||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testClassnameTest() {
|
void testClassnameTest() {
|
||||||
Client body = null;
|
Client body = null;
|
||||||
// Client response = api.testClassname(body);
|
// Client response = api.testClassname(body);
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ import java.io.File;
|
|||||||
import org.openapitools.client.model.ModelApiResponse;
|
import org.openapitools.client.model.ModelApiResponse;
|
||||||
import org.openapitools.client.model.Pet;
|
import org.openapitools.client.model.Pet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import org.junit.Before;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -16,11 +16,11 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* API tests for PetApi
|
* API tests for PetApi
|
||||||
*/
|
*/
|
||||||
public class PetApiTest {
|
class PetApiTest {
|
||||||
|
|
||||||
private PetApi api;
|
private PetApi api;
|
||||||
|
|
||||||
@Before
|
@BeforeEach
|
||||||
public void setup() {
|
public void setup() {
|
||||||
api = new ApiClient().buildClient(PetApi.class);
|
api = new ApiClient().buildClient(PetApi.class);
|
||||||
}
|
}
|
||||||
@ -32,7 +32,7 @@ public class PetApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void addPetTest() {
|
void addPetTest() {
|
||||||
Pet body = null;
|
Pet body = null;
|
||||||
// api.addPet(body);
|
// api.addPet(body);
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ public class PetApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void deletePetTest() {
|
void deletePetTest() {
|
||||||
Long petId = null;
|
Long petId = null;
|
||||||
String apiKey = null;
|
String apiKey = null;
|
||||||
// api.deletePet(petId, apiKey);
|
// api.deletePet(petId, apiKey);
|
||||||
@ -61,7 +61,7 @@ public class PetApiTest {
|
|||||||
* Multiple status values can be provided with comma separated strings
|
* Multiple status values can be provided with comma separated strings
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void findPetsByStatusTest() {
|
void findPetsByStatusTest() {
|
||||||
List<String> status = null;
|
List<String> status = null;
|
||||||
// List<Pet> response = api.findPetsByStatus(status);
|
// List<Pet> response = api.findPetsByStatus(status);
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public class PetApiTest {
|
|||||||
* listing them out individually.
|
* listing them out individually.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void findPetsByStatusTestQueryMap() {
|
void findPetsByStatusTestQueryMap() {
|
||||||
PetApi.FindPetsByStatusQueryParams queryParams = new PetApi.FindPetsByStatusQueryParams()
|
PetApi.FindPetsByStatusQueryParams queryParams = new PetApi.FindPetsByStatusQueryParams()
|
||||||
.status(null);
|
.status(null);
|
||||||
// List<Pet> response = api.findPetsByStatus(queryParams);
|
// List<Pet> response = api.findPetsByStatus(queryParams);
|
||||||
@ -91,7 +91,7 @@ public class PetApiTest {
|
|||||||
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void findPetsByTagsTest() {
|
void findPetsByTagsTest() {
|
||||||
Set<String> tags = null;
|
Set<String> tags = null;
|
||||||
// Set<Pet> response = api.findPetsByTags(tags);
|
// Set<Pet> response = api.findPetsByTags(tags);
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ public class PetApiTest {
|
|||||||
* listing them out individually.
|
* listing them out individually.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void findPetsByTagsTestQueryMap() {
|
void findPetsByTagsTestQueryMap() {
|
||||||
PetApi.FindPetsByTagsQueryParams queryParams = new PetApi.FindPetsByTagsQueryParams()
|
PetApi.FindPetsByTagsQueryParams queryParams = new PetApi.FindPetsByTagsQueryParams()
|
||||||
.tags(null);
|
.tags(null);
|
||||||
// Set<Pet> response = api.findPetsByTags(queryParams);
|
// Set<Pet> response = api.findPetsByTags(queryParams);
|
||||||
@ -121,7 +121,7 @@ public class PetApiTest {
|
|||||||
* Returns a single pet
|
* Returns a single pet
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void getPetByIdTest() {
|
void getPetByIdTest() {
|
||||||
Long petId = null;
|
Long petId = null;
|
||||||
// Pet response = api.getPetById(petId);
|
// Pet response = api.getPetById(petId);
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ public class PetApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void updatePetTest() {
|
void updatePetTest() {
|
||||||
Pet body = null;
|
Pet body = null;
|
||||||
// api.updatePet(body);
|
// api.updatePet(body);
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ public class PetApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void updatePetWithFormTest() {
|
void updatePetWithFormTest() {
|
||||||
Long petId = null;
|
Long petId = null;
|
||||||
String name = null;
|
String name = null;
|
||||||
String status = null;
|
String status = null;
|
||||||
@ -165,7 +165,7 @@ public class PetApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void uploadFileTest() {
|
void uploadFileTest() {
|
||||||
Long petId = null;
|
Long petId = null;
|
||||||
String additionalMetadata = null;
|
String additionalMetadata = null;
|
||||||
File file = null;
|
File file = null;
|
||||||
@ -181,7 +181,7 @@ public class PetApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void uploadFileWithRequiredFileTest() {
|
void uploadFileWithRequiredFileTest() {
|
||||||
Long petId = null;
|
Long petId = null;
|
||||||
File requiredFile = null;
|
File requiredFile = null;
|
||||||
String additionalMetadata = null;
|
String additionalMetadata = null;
|
||||||
|
@ -2,8 +2,8 @@ package org.openapitools.client.api;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
import org.openapitools.client.model.Order;
|
import org.openapitools.client.model.Order;
|
||||||
import org.junit.Before;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -13,11 +13,11 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* API tests for StoreApi
|
* API tests for StoreApi
|
||||||
*/
|
*/
|
||||||
public class StoreApiTest {
|
class StoreApiTest {
|
||||||
|
|
||||||
private StoreApi api;
|
private StoreApi api;
|
||||||
|
|
||||||
@Before
|
@BeforeEach
|
||||||
public void setup() {
|
public void setup() {
|
||||||
api = new ApiClient().buildClient(StoreApi.class);
|
api = new ApiClient().buildClient(StoreApi.class);
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ public class StoreApiTest {
|
|||||||
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void deleteOrderTest() {
|
void deleteOrderTest() {
|
||||||
String orderId = null;
|
String orderId = null;
|
||||||
// api.deleteOrder(orderId);
|
// api.deleteOrder(orderId);
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ public class StoreApiTest {
|
|||||||
* Returns a map of status codes to quantities
|
* Returns a map of status codes to quantities
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void getInventoryTest() {
|
void getInventoryTest() {
|
||||||
// Map<String, Integer> response = api.getInventory();
|
// Map<String, Integer> response = api.getInventory();
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
@ -56,7 +56,7 @@ public class StoreApiTest {
|
|||||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void getOrderByIdTest() {
|
void getOrderByIdTest() {
|
||||||
Long orderId = null;
|
Long orderId = null;
|
||||||
// Order response = api.getOrderById(orderId);
|
// Order response = api.getOrderById(orderId);
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ public class StoreApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void placeOrderTest() {
|
void placeOrderTest() {
|
||||||
Order body = null;
|
Order body = null;
|
||||||
// Order response = api.placeOrder(body);
|
// Order response = api.placeOrder(body);
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ package org.openapitools.client.api;
|
|||||||
|
|
||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
import org.junit.Before;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -13,11 +13,11 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* API tests for UserApi
|
* API tests for UserApi
|
||||||
*/
|
*/
|
||||||
public class UserApiTest {
|
class UserApiTest {
|
||||||
|
|
||||||
private UserApi api;
|
private UserApi api;
|
||||||
|
|
||||||
@Before
|
@BeforeEach
|
||||||
public void setup() {
|
public void setup() {
|
||||||
api = new ApiClient().buildClient(UserApi.class);
|
api = new ApiClient().buildClient(UserApi.class);
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ public class UserApiTest {
|
|||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void createUserTest() {
|
void createUserTest() {
|
||||||
User body = null;
|
User body = null;
|
||||||
// api.createUser(body);
|
// api.createUser(body);
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ public class UserApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void createUsersWithArrayInputTest() {
|
void createUsersWithArrayInputTest() {
|
||||||
List<User> body = null;
|
List<User> body = null;
|
||||||
// api.createUsersWithArrayInput(body);
|
// api.createUsersWithArrayInput(body);
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ public class UserApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void createUsersWithListInputTest() {
|
void createUsersWithListInputTest() {
|
||||||
List<User> body = null;
|
List<User> body = null;
|
||||||
// api.createUsersWithListInput(body);
|
// api.createUsersWithListInput(body);
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ public class UserApiTest {
|
|||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void deleteUserTest() {
|
void deleteUserTest() {
|
||||||
String username = null;
|
String username = null;
|
||||||
// api.deleteUser(username);
|
// api.deleteUser(username);
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ public class UserApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void getUserByNameTest() {
|
void getUserByNameTest() {
|
||||||
String username = null;
|
String username = null;
|
||||||
// User response = api.getUserByName(username);
|
// User response = api.getUserByName(username);
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ public class UserApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void loginUserTest() {
|
void loginUserTest() {
|
||||||
String username = null;
|
String username = null;
|
||||||
String password = null;
|
String password = null;
|
||||||
// String response = api.loginUser(username, password);
|
// String response = api.loginUser(username, password);
|
||||||
@ -116,7 +116,7 @@ public class UserApiTest {
|
|||||||
* listing them out individually.
|
* listing them out individually.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void loginUserTestQueryMap() {
|
void loginUserTestQueryMap() {
|
||||||
UserApi.LoginUserQueryParams queryParams = new UserApi.LoginUserQueryParams()
|
UserApi.LoginUserQueryParams queryParams = new UserApi.LoginUserQueryParams()
|
||||||
.username(null)
|
.username(null)
|
||||||
.password(null);
|
.password(null);
|
||||||
@ -131,7 +131,7 @@ public class UserApiTest {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void logoutUserTest() {
|
void logoutUserTest() {
|
||||||
// api.logoutUser();
|
// api.logoutUser();
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
@ -144,7 +144,7 @@ public class UserApiTest {
|
|||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void updateUserTest() {
|
void updateUserTest() {
|
||||||
String username = null;
|
String username = null;
|
||||||
User body = null;
|
User body = null;
|
||||||
// api.updateUser(username, body);
|
// api.updateUser(username, body);
|
||||||
|
@ -22,22 +22,20 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.junit.Assert;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesAnyType
|
* Model tests for AdditionalPropertiesAnyType
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesAnyTypeTest {
|
class AdditionalPropertiesAnyTypeTest {
|
||||||
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType();
|
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesAnyType
|
* Model tests for AdditionalPropertiesAnyType
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesAnyType() {
|
void testAdditionalPropertiesAnyType() {
|
||||||
// TODO: test AdditionalPropertiesAnyType
|
// TODO: test AdditionalPropertiesAnyType
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +43,7 @@ public class AdditionalPropertiesAnyTypeTest {
|
|||||||
* Test the property 'name'
|
* Test the property 'name'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,22 +23,20 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.junit.Assert;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesArray
|
* Model tests for AdditionalPropertiesArray
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesArrayTest {
|
class AdditionalPropertiesArrayTest {
|
||||||
private final AdditionalPropertiesArray model = new AdditionalPropertiesArray();
|
private final AdditionalPropertiesArray model = new AdditionalPropertiesArray();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesArray
|
* Model tests for AdditionalPropertiesArray
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesArray() {
|
void testAdditionalPropertiesArray() {
|
||||||
// TODO: test AdditionalPropertiesArray
|
// TODO: test AdditionalPropertiesArray
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,7 +44,7 @@ public class AdditionalPropertiesArrayTest {
|
|||||||
* Test the property 'name'
|
* Test the property 'name'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,22 +22,20 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.junit.Assert;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesBoolean
|
* Model tests for AdditionalPropertiesBoolean
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesBooleanTest {
|
class AdditionalPropertiesBooleanTest {
|
||||||
private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean();
|
private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesBoolean
|
* Model tests for AdditionalPropertiesBoolean
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesBoolean() {
|
void testAdditionalPropertiesBoolean() {
|
||||||
// TODO: test AdditionalPropertiesBoolean
|
// TODO: test AdditionalPropertiesBoolean
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +43,7 @@ public class AdditionalPropertiesBooleanTest {
|
|||||||
* Test the property 'name'
|
* Test the property 'name'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,22 +24,20 @@ import java.math.BigDecimal;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.junit.Assert;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesClass
|
* Model tests for AdditionalPropertiesClass
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesClassTest {
|
class AdditionalPropertiesClassTest {
|
||||||
private final AdditionalPropertiesClass model = new AdditionalPropertiesClass();
|
private final AdditionalPropertiesClass model = new AdditionalPropertiesClass();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesClass
|
* Model tests for AdditionalPropertiesClass
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesClass() {
|
void testAdditionalPropertiesClass() {
|
||||||
// TODO: test AdditionalPropertiesClass
|
// TODO: test AdditionalPropertiesClass
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,7 +45,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'mapString'
|
* Test the property 'mapString'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void mapStringTest() {
|
void mapStringTest() {
|
||||||
// TODO: test mapString
|
// TODO: test mapString
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,7 +53,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'mapNumber'
|
* Test the property 'mapNumber'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void mapNumberTest() {
|
void mapNumberTest() {
|
||||||
// TODO: test mapNumber
|
// TODO: test mapNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,7 +61,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'mapInteger'
|
* Test the property 'mapInteger'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void mapIntegerTest() {
|
void mapIntegerTest() {
|
||||||
// TODO: test mapInteger
|
// TODO: test mapInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,7 +69,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'mapBoolean'
|
* Test the property 'mapBoolean'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void mapBooleanTest() {
|
void mapBooleanTest() {
|
||||||
// TODO: test mapBoolean
|
// TODO: test mapBoolean
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,7 +77,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'mapArrayInteger'
|
* Test the property 'mapArrayInteger'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void mapArrayIntegerTest() {
|
void mapArrayIntegerTest() {
|
||||||
// TODO: test mapArrayInteger
|
// TODO: test mapArrayInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,7 +85,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'mapArrayAnytype'
|
* Test the property 'mapArrayAnytype'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void mapArrayAnytypeTest() {
|
void mapArrayAnytypeTest() {
|
||||||
// TODO: test mapArrayAnytype
|
// TODO: test mapArrayAnytype
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,7 +93,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'mapMapString'
|
* Test the property 'mapMapString'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void mapMapStringTest() {
|
void mapMapStringTest() {
|
||||||
// TODO: test mapMapString
|
// TODO: test mapMapString
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,7 +101,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'mapMapAnytype'
|
* Test the property 'mapMapAnytype'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void mapMapAnytypeTest() {
|
void mapMapAnytypeTest() {
|
||||||
// TODO: test mapMapAnytype
|
// TODO: test mapMapAnytype
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,7 +109,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'anytype1'
|
* Test the property 'anytype1'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void anytype1Test() {
|
void anytype1Test() {
|
||||||
// TODO: test anytype1
|
// TODO: test anytype1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,7 +117,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'anytype2'
|
* Test the property 'anytype2'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void anytype2Test() {
|
void anytype2Test() {
|
||||||
// TODO: test anytype2
|
// TODO: test anytype2
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,7 +125,7 @@ public class AdditionalPropertiesClassTest {
|
|||||||
* Test the property 'anytype3'
|
* Test the property 'anytype3'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void anytype3Test() {
|
void anytype3Test() {
|
||||||
// TODO: test anytype3
|
// TODO: test anytype3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,22 +22,20 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.junit.Assert;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesInteger
|
* Model tests for AdditionalPropertiesInteger
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesIntegerTest {
|
class AdditionalPropertiesIntegerTest {
|
||||||
private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger();
|
private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesInteger
|
* Model tests for AdditionalPropertiesInteger
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesInteger() {
|
void testAdditionalPropertiesInteger() {
|
||||||
// TODO: test AdditionalPropertiesInteger
|
// TODO: test AdditionalPropertiesInteger
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +43,7 @@ public class AdditionalPropertiesIntegerTest {
|
|||||||
* Test the property 'name'
|
* Test the property 'name'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,22 +23,20 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.junit.Assert;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesNumber
|
* Model tests for AdditionalPropertiesNumber
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesNumberTest {
|
class AdditionalPropertiesNumberTest {
|
||||||
private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber();
|
private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesNumber
|
* Model tests for AdditionalPropertiesNumber
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesNumber() {
|
void testAdditionalPropertiesNumber() {
|
||||||
// TODO: test AdditionalPropertiesNumber
|
// TODO: test AdditionalPropertiesNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,7 +44,7 @@ public class AdditionalPropertiesNumberTest {
|
|||||||
* Test the property 'name'
|
* Test the property 'name'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
void nameTest() {
|
||||||
// TODO: test name
|
// TODO: test name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user