[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:
Jon Jensen 2021-07-18 20:27:03 -06:00 committed by GitHub
parent c42e03e251
commit bd070308d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2116 changed files with 229574 additions and 578 deletions

View 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"

View 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"

View 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

View 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"

View 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"

View 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"

View 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"

View 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"

View 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

View 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"

View File

@ -31,10 +31,16 @@ public interface {{classname}} extends ApiClient.Api {
* @return {{returnType}}
{{/returnType}}
{{#externalDocs}}
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
@RequestLine("{{httpMethod}} {{{path}}}{{#hasQueryParams}}?{{/hasQueryParams}}{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
@Headers({
{{#vendorExtensions.x-contentType}} "Content-Type: {{vendorExtensions.x-contentType}}",
@ -72,7 +78,13 @@ public interface {{classname}} extends ApiClient.Api {
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
@RequestLine("{{httpMethod}} {{{path}}}?{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
@Headers({
{{#vendorExtensions.x-contentType}} "Content-Type: {{vendorExtensions.x-contentType}}",

View File

@ -53,9 +53,14 @@ public class {{classname}} {
* @throws IOException if an error occurs while attempting to invoke the API{{#externalDocs}}
* {{description}}
* @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 {
{{#returnType}}HttpResponse response = {{/returnType}}{{operationId}}ForHttpResponse({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#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}}
* {{description}}
* @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 {
{{#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}}}>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);{{/returnType}}
}
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
public HttpResponse {{operationId}}ForHttpResponse({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws IOException {
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
if ({{paramName}} == null) {
@ -112,6 +125,9 @@ public class {{classname}} {
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.{{httpMethod}}, genericUrl, content).execute();
}{{#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 {
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
if ({{paramName}} == null) {
@ -145,6 +161,9 @@ public class {{classname}} {
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.{{httpMethod}}, genericUrl, content).execute();
}{{/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 {
{{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set
if ({{paramName}} == null) {

View File

@ -1,6 +1,8 @@
/**
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}
*/{{#description}}
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}{{#isDeprecated}}
* @deprecated{{/isDeprecated}}
*/{{#isDeprecated}}
@Deprecated{{/isDeprecated}}{{#description}}
@ApiModel(description = "{{{description}}}"){{/description}}
{{#jackson}}
@JsonPropertyOrder({
@ -187,7 +189,13 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
* maximum: {{maximum}}
{{/maximum}}
* @return {{name}}
{{#deprecated}}
* @deprecated
{{/deprecated}}
**/
{{#deprecated}}
@Deprecated
{{/deprecated}}
{{#required}}
{{#isNullable}}
@javax.annotation.Nullable

View File

@ -44,8 +44,14 @@ public interface {{classname}} {
* {{notes}}
*
{{/notes}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{/summary}}
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
@{{httpMethod}}
{{#subresourceOperation}}@Path("{{{path}}}"){{/subresourceOperation}}
{{#hasConsumes}}

View File

@ -69,7 +69,13 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{#serializ
* maximum: {{maximum}}
{{/maximum}}
* @return {{name}}
{{#deprecated}}
* @deprecated
{{/deprecated}}
**/
{{#deprecated}}
@Deprecated
{{/deprecated}}
{{^withXml}}
@JsonbProperty("{{baseName}}")
{{/withXml}}

View File

@ -2,8 +2,10 @@
import {{invokerPackage}}.JSON;
{{/discriminator}}
/**
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}
*/{{#description}}
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}{{#isDeprecated}}
* @deprecated{{/isDeprecated}}
*/{{#isDeprecated}}
@Deprecated{{/isDeprecated}}{{#description}}
@ApiModel(description = "{{{description}}}"){{/description}}
{{#jackson}}
@JsonPropertyOrder({
@ -190,7 +192,13 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
* maximum: {{maximum}}
{{/maximum}}
* @return {{name}}
{{#deprecated}}
* @deprecated
{{/deprecated}}
**/
{{#deprecated}}
@Deprecated
{{/deprecated}}
{{#required}}
{{#isNullable}}
@javax.annotation.Nullable

View File

@ -67,6 +67,9 @@ public class {{classname}} {
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{#isDeprecated}}
@Deprecated
@ -95,6 +98,9 @@ public class {{classname}} {
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{#isDeprecated}}
@Deprecated

View File

@ -31,7 +31,13 @@ public interface {{classname}} {
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
{{#formParams}}{{#-first}}
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
@{{httpMethod}}("{{{path}}}")
@ -50,7 +56,13 @@ public interface {{classname}} {
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
{{#formParams}}{{#-first}}
{{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
@{{httpMethod}}("{{{path}}}")

View File

@ -34,7 +34,13 @@ public interface {{classname}} {
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}
{{/allParams}}
* @return Call&lt;{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}&gt;
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
{{#formParams}}
{{#-first}}
{{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}

View File

@ -34,7 +34,13 @@ public interface {{classname}} {
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}
{{/allParams}}
* @return Call&lt;{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}&gt;
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
{{#formParams}}
{{#-first}}
{{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}

View File

@ -34,7 +34,13 @@ public interface {{classname}} {
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}
{{/allParams}}
* @return Call&lt;{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}&gt;
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
{{#formParams}}
{{#-first}}
{{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}

View File

@ -13,8 +13,14 @@ public interface {{classname}} {
{{#operations}}
{{#operation}}
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
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);
{{/operation}}

View File

@ -277,7 +277,7 @@
<dependency>
<groupId>com.github.joschi.jackson</groupId>
<artifactId>jackson-datatype-threetenbp</artifactId>
<version>${jackson-version}</version>
<version>2.9.10</version>
</dependency>
{{/threetenbp}}
<dependency>

View File

@ -60,10 +60,16 @@ public class {{classname}} {
{{/allParams}}{{#returnType}} * @return {{returnType}}
{{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API
{{#externalDocs}}
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
* {{description}}
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/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 {
Object postBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}};
{{#allParams}}

View File

@ -12,6 +12,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
{{/fullJavaUtil}}
/**
@ -33,7 +34,7 @@ public class {{classname}}Test {
{{#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;
{{/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
}

View File

@ -1,6 +1,8 @@
/**
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}
*/{{#description}}
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}{{#isDeprecated}}
* @deprecated{{/isDeprecated}}
*/{{#isDeprecated}}
@Deprecated{{/isDeprecated}}{{#description}}
@ApiModel(description = "{{{description}}}"){{/description}}
{{#jackson}}
@JsonPropertyOrder({
@ -170,7 +172,13 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE
* maximum: {{maximum}}
{{/maximum}}
* @return {{name}}
{{#deprecated}}
* @deprecated
{{/deprecated}}
**/
{{#deprecated}}
@Deprecated
{{/deprecated}}
{{#required}}
{{#isNullable}}
@javax.annotation.Nullable

View File

@ -2121,3 +2121,24 @@ components:
default: '2010-01-01T10:10:10.000111+01:00'
example: '2010-01-01T10:10:10.000111+01:00'
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'

View File

@ -1861,4 +1861,25 @@ components:
- value
properties:
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'

View File

@ -24,6 +24,7 @@ docs/ClassModel.md
docs/ComplexQuadrilateral.md
docs/DanishPig.md
docs/DefaultApi.md
docs/DeprecatedObject.md
docs/Dog.md
docs/DogAllOf.md
docs/Drawing.md
@ -55,6 +56,7 @@ docs/Name.md
docs/NullableClass.md
docs/NullableShape.md
docs/NumberOnly.md
docs/ObjectWithDeprecatedFields.md
docs/Order.md
docs/OuterComposite.md
docs/OuterEnum.md
@ -84,6 +86,8 @@ docs/UserApi.md
docs/Whale.md
docs/Zebra.md
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/Api/AnotherFakeApi.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/ComplexQuadrilateral.cs
src/Org.OpenAPITools/Model/DanishPig.cs
src/Org.OpenAPITools/Model/DeprecatedObject.cs
src/Org.OpenAPITools/Model/Dog.cs
src/Org.OpenAPITools/Model/DogAllOf.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/NullableShape.cs
src/Org.OpenAPITools/Model/NumberOnly.cs
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
src/Org.OpenAPITools/Model/Order.cs
src/Org.OpenAPITools/Model/OuterComposite.cs
src/Org.OpenAPITools/Model/OuterEnum.cs

View File

@ -167,6 +167,7 @@ Class | Method | HTTP request | Description
- [Model.ClassModel](docs/ClassModel.md)
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
- [Model.DanishPig](docs/DanishPig.md)
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
- [Model.Dog](docs/Dog.md)
- [Model.DogAllOf](docs/DogAllOf.md)
- [Model.Drawing](docs/Drawing.md)
@ -196,6 +197,7 @@ Class | Method | HTTP request | Description
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableShape](docs/NullableShape.md)
- [Model.NumberOnly](docs/NumberOnly.md)
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- [Model.Order](docs/Order.md)
- [Model.OuterComposite](docs/OuterComposite.md)
- [Model.OuterEnum](docs/OuterEnum.md)

View File

@ -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)

View File

@ -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&lt;string&gt;** | | [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)

View File

@ -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'
}
}
}

View File

@ -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'
}
}
}

View File

@ -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;
}
}
}

View File

@ -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;
}
}
}

View File

@ -24,6 +24,7 @@ docs/ClassModel.md
docs/ComplexQuadrilateral.md
docs/DanishPig.md
docs/DefaultApi.md
docs/DeprecatedObject.md
docs/Dog.md
docs/DogAllOf.md
docs/Drawing.md
@ -55,6 +56,7 @@ docs/Name.md
docs/NullableClass.md
docs/NullableShape.md
docs/NumberOnly.md
docs/ObjectWithDeprecatedFields.md
docs/Order.md
docs/OuterComposite.md
docs/OuterEnum.md
@ -130,6 +132,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
src/Org.OpenAPITools/Model/ClassModel.cs
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
src/Org.OpenAPITools/Model/DanishPig.cs
src/Org.OpenAPITools/Model/DeprecatedObject.cs
src/Org.OpenAPITools/Model/Dog.cs
src/Org.OpenAPITools/Model/DogAllOf.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/NullableShape.cs
src/Org.OpenAPITools/Model/NumberOnly.cs
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
src/Org.OpenAPITools/Model/Order.cs
src/Org.OpenAPITools/Model/OuterComposite.cs
src/Org.OpenAPITools/Model/OuterEnum.cs

View File

@ -192,6 +192,7 @@ Class | Method | HTTP request | Description
- [Model.ClassModel](docs/ClassModel.md)
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
- [Model.DanishPig](docs/DanishPig.md)
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
- [Model.Dog](docs/Dog.md)
- [Model.DogAllOf](docs/DogAllOf.md)
- [Model.Drawing](docs/Drawing.md)
@ -221,6 +222,7 @@ Class | Method | HTTP request | Description
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableShape](docs/NullableShape.md)
- [Model.NumberOnly](docs/NumberOnly.md)
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- [Model.Order](docs/Order.md)
- [Model.OuterComposite](docs/OuterComposite.md)
- [Model.OuterEnum](docs/OuterEnum.md)

View File

@ -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)

View File

@ -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&lt;string&gt;** | | [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)

View File

@ -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'
}
}
}

View File

@ -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'
}
}
}

View File

@ -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;
}
}
}

View File

@ -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;
}
}
}

View File

@ -24,6 +24,7 @@ docs/ClassModel.md
docs/ComplexQuadrilateral.md
docs/DanishPig.md
docs/DefaultApi.md
docs/DeprecatedObject.md
docs/Dog.md
docs/DogAllOf.md
docs/Drawing.md
@ -55,6 +56,7 @@ docs/Name.md
docs/NullableClass.md
docs/NullableShape.md
docs/NumberOnly.md
docs/ObjectWithDeprecatedFields.md
docs/Order.md
docs/OuterComposite.md
docs/OuterEnum.md
@ -130,6 +132,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
src/Org.OpenAPITools/Model/ClassModel.cs
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
src/Org.OpenAPITools/Model/DanishPig.cs
src/Org.OpenAPITools/Model/DeprecatedObject.cs
src/Org.OpenAPITools/Model/Dog.cs
src/Org.OpenAPITools/Model/DogAllOf.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/NullableShape.cs
src/Org.OpenAPITools/Model/NumberOnly.cs
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
src/Org.OpenAPITools/Model/Order.cs
src/Org.OpenAPITools/Model/OuterComposite.cs
src/Org.OpenAPITools/Model/OuterEnum.cs

View File

@ -179,6 +179,7 @@ Class | Method | HTTP request | Description
- [Model.ClassModel](docs/ClassModel.md)
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
- [Model.DanishPig](docs/DanishPig.md)
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
- [Model.Dog](docs/Dog.md)
- [Model.DogAllOf](docs/DogAllOf.md)
- [Model.Drawing](docs/Drawing.md)
@ -208,6 +209,7 @@ Class | Method | HTTP request | Description
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableShape](docs/NullableShape.md)
- [Model.NumberOnly](docs/NumberOnly.md)
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- [Model.Order](docs/Order.md)
- [Model.OuterComposite](docs/OuterComposite.md)
- [Model.OuterEnum](docs/OuterEnum.md)

View File

@ -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)

View File

@ -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&lt;string&gt;** | | [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)

View File

@ -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'
}
}
}

View File

@ -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'
}
}
}

View File

@ -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;
}
}
}

View File

@ -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;
}
}
}

View File

@ -24,6 +24,7 @@ docs/ClassModel.md
docs/ComplexQuadrilateral.md
docs/DanishPig.md
docs/DefaultApi.md
docs/DeprecatedObject.md
docs/Dog.md
docs/DogAllOf.md
docs/Drawing.md
@ -55,6 +56,7 @@ docs/Name.md
docs/NullableClass.md
docs/NullableShape.md
docs/NumberOnly.md
docs/ObjectWithDeprecatedFields.md
docs/Order.md
docs/OuterComposite.md
docs/OuterEnum.md
@ -130,6 +132,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
src/Org.OpenAPITools/Model/ClassModel.cs
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
src/Org.OpenAPITools/Model/DanishPig.cs
src/Org.OpenAPITools/Model/DeprecatedObject.cs
src/Org.OpenAPITools/Model/Dog.cs
src/Org.OpenAPITools/Model/DogAllOf.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/NullableShape.cs
src/Org.OpenAPITools/Model/NumberOnly.cs
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
src/Org.OpenAPITools/Model/Order.cs
src/Org.OpenAPITools/Model/OuterComposite.cs
src/Org.OpenAPITools/Model/OuterEnum.cs

View File

@ -179,6 +179,7 @@ Class | Method | HTTP request | Description
- [Model.ClassModel](docs/ClassModel.md)
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
- [Model.DanishPig](docs/DanishPig.md)
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
- [Model.Dog](docs/Dog.md)
- [Model.DogAllOf](docs/DogAllOf.md)
- [Model.Drawing](docs/Drawing.md)
@ -208,6 +209,7 @@ Class | Method | HTTP request | Description
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableShape](docs/NullableShape.md)
- [Model.NumberOnly](docs/NumberOnly.md)
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- [Model.Order](docs/Order.md)
- [Model.OuterComposite](docs/OuterComposite.md)
- [Model.OuterEnum](docs/OuterEnum.md)

View File

@ -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)

View File

@ -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&lt;string&gt;** | | [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)

View File

@ -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'
}
}
}

View File

@ -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'
}
}
}

View File

@ -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;
}
}
}

View File

@ -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;
}
}
}

View File

@ -24,6 +24,7 @@ docs/ClassModel.md
docs/ComplexQuadrilateral.md
docs/DanishPig.md
docs/DefaultApi.md
docs/DeprecatedObject.md
docs/Dog.md
docs/DogAllOf.md
docs/Drawing.md
@ -55,6 +56,7 @@ docs/Name.md
docs/NullableClass.md
docs/NullableShape.md
docs/NumberOnly.md
docs/ObjectWithDeprecatedFields.md
docs/Order.md
docs/OuterComposite.md
docs/OuterEnum.md
@ -129,6 +131,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
src/Org.OpenAPITools/Model/ClassModel.cs
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
src/Org.OpenAPITools/Model/DanishPig.cs
src/Org.OpenAPITools/Model/DeprecatedObject.cs
src/Org.OpenAPITools/Model/Dog.cs
src/Org.OpenAPITools/Model/DogAllOf.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/NullableShape.cs
src/Org.OpenAPITools/Model/NumberOnly.cs
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
src/Org.OpenAPITools/Model/Order.cs
src/Org.OpenAPITools/Model/OuterComposite.cs
src/Org.OpenAPITools/Model/OuterEnum.cs

View File

@ -167,6 +167,7 @@ Class | Method | HTTP request | Description
- [Model.ClassModel](docs/ClassModel.md)
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
- [Model.DanishPig](docs/DanishPig.md)
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
- [Model.Dog](docs/Dog.md)
- [Model.DogAllOf](docs/DogAllOf.md)
- [Model.Drawing](docs/Drawing.md)
@ -196,6 +197,7 @@ Class | Method | HTTP request | Description
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableShape](docs/NullableShape.md)
- [Model.NumberOnly](docs/NumberOnly.md)
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- [Model.Order](docs/Order.md)
- [Model.OuterComposite](docs/OuterComposite.md)
- [Model.OuterEnum](docs/OuterEnum.md)

View File

@ -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)

View File

@ -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&lt;string&gt;** | | [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)

View File

@ -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'
}
}
}

View File

@ -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'
}
}
}

View File

@ -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;
}
}
}

View File

@ -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;
}
}
}

View File

@ -24,6 +24,7 @@ docs/ClassModel.md
docs/ComplexQuadrilateral.md
docs/DanishPig.md
docs/DefaultApi.md
docs/DeprecatedObject.md
docs/Dog.md
docs/DogAllOf.md
docs/Drawing.md
@ -55,6 +56,7 @@ docs/Name.md
docs/NullableClass.md
docs/NullableShape.md
docs/NumberOnly.md
docs/ObjectWithDeprecatedFields.md
docs/Order.md
docs/OuterComposite.md
docs/OuterEnum.md
@ -129,6 +131,7 @@ src/Org.OpenAPITools/Model/ChildCatAllOf.cs
src/Org.OpenAPITools/Model/ClassModel.cs
src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
src/Org.OpenAPITools/Model/DanishPig.cs
src/Org.OpenAPITools/Model/DeprecatedObject.cs
src/Org.OpenAPITools/Model/Dog.cs
src/Org.OpenAPITools/Model/DogAllOf.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/NullableShape.cs
src/Org.OpenAPITools/Model/NumberOnly.cs
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
src/Org.OpenAPITools/Model/Order.cs
src/Org.OpenAPITools/Model/OuterComposite.cs
src/Org.OpenAPITools/Model/OuterEnum.cs

View File

@ -179,6 +179,7 @@ Class | Method | HTTP request | Description
- [Model.ClassModel](docs/ClassModel.md)
- [Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
- [Model.DanishPig](docs/DanishPig.md)
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
- [Model.Dog](docs/Dog.md)
- [Model.DogAllOf](docs/DogAllOf.md)
- [Model.Drawing](docs/Drawing.md)
@ -208,6 +209,7 @@ Class | Method | HTTP request | Description
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableShape](docs/NullableShape.md)
- [Model.NumberOnly](docs/NumberOnly.md)
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- [Model.Order](docs/Order.md)
- [Model.OuterComposite](docs/OuterComposite.md)
- [Model.OuterEnum](docs/OuterEnum.md)

View File

@ -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)

View File

@ -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&lt;string&gt;** | | [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)

View File

@ -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'
}
}
}

View File

@ -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'
}
}
}

View File

@ -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;
}
}
}

View File

@ -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;
}
}
}

View File

@ -17,6 +17,7 @@ docs/CatAllOf.md
docs/Category.md
docs/ClassModel.md
docs/DefaultApi.md
docs/DeprecatedObject.md
docs/Dog.md
docs/DogAllOf.md
docs/EnumArrays.md
@ -39,6 +40,7 @@ docs/ModelClient.md
docs/Name.md
docs/NullableClass.md
docs/NumberOnly.md
docs/ObjectWithDeprecatedFields.md
docs/Order.md
docs/OuterComposite.md
docs/OuterEnum.md
@ -85,6 +87,7 @@ src/Org.OpenAPITools/Model/Cat.cs
src/Org.OpenAPITools/Model/CatAllOf.cs
src/Org.OpenAPITools/Model/Category.cs
src/Org.OpenAPITools/Model/ClassModel.cs
src/Org.OpenAPITools/Model/DeprecatedObject.cs
src/Org.OpenAPITools/Model/Dog.cs
src/Org.OpenAPITools/Model/DogAllOf.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/NullableClass.cs
src/Org.OpenAPITools/Model/NumberOnly.cs
src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
src/Org.OpenAPITools/Model/Order.cs
src/Org.OpenAPITools/Model/OuterComposite.cs
src/Org.OpenAPITools/Model/OuterEnum.cs

View File

@ -161,6 +161,7 @@ Class | Method | HTTP request | Description
- [Model.CatAllOf](docs/CatAllOf.md)
- [Model.Category](docs/Category.md)
- [Model.ClassModel](docs/ClassModel.md)
- [Model.DeprecatedObject](docs/DeprecatedObject.md)
- [Model.Dog](docs/Dog.md)
- [Model.DogAllOf](docs/DogAllOf.md)
- [Model.EnumArrays](docs/EnumArrays.md)
@ -181,6 +182,7 @@ Class | Method | HTTP request | Description
- [Model.Name](docs/Name.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NumberOnly](docs/NumberOnly.md)
- [Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- [Model.Order](docs/Order.md)
- [Model.OuterComposite](docs/OuterComposite.md)
- [Model.OuterEnum](docs/OuterEnum.md)

View File

@ -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)

View File

@ -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&lt;string&gt;** | | [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)

View File

@ -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'
}
}
}

View File

@ -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'
}
}
}

View File

@ -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;
}
}
}

View File

@ -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;
}
}
}

View File

@ -23,6 +23,7 @@ lib/openapi_petstore/model/cat_all_of.ex
lib/openapi_petstore/model/category.ex
lib/openapi_petstore/model/class_model.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_all_of.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/nullable_class.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/outer_composite.ex
lib/openapi_petstore/model/outer_enum.ex

View File

@ -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

View File

@ -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

View File

@ -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.
* @param tags Tags to filter by (required)
* @return Set&lt;Pet&gt;
* @deprecated
*/
@Deprecated
@RequestLine("GET /pet/findByTags?tags={tags}")
@Headers({
"Accept: application/json",
@ -113,7 +115,9 @@ public interface PetApi extends ApiClient.Api {
* <li>tags - Tags to filter by (required)</li>
* </ul>
* @return Set&lt;Pet&gt;
* @deprecated
*/
@Deprecated
@RequestLine("GET /pet/findByTags?tags={tags}")
@Headers({
"Accept: application/json",

View File

@ -2,8 +2,8 @@ package org.openapitools.client.api;
import org.openapitools.client.ApiClient;
import org.openapitools.client.model.Client;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeEach;
import java.util.ArrayList;
import java.util.HashMap;
@ -13,11 +13,11 @@ import java.util.Map;
/**
* API tests for AnotherFakeApi
*/
public class AnotherFakeApiTest {
class AnotherFakeApiTest {
private AnotherFakeApi api;
@Before
@BeforeEach
public void setup() {
api = new ApiClient().buildClient(AnotherFakeApi.class);
}
@ -29,7 +29,7 @@ public class AnotherFakeApiTest {
* To test special tags and operation ID starting with number
*/
@Test
public void call123testSpecialTagsTest() {
void call123testSpecialTagsTest() {
Client body = null;
// Client response = api.call123testSpecialTags(body);

View File

@ -10,8 +10,8 @@ import org.threeten.bp.OffsetDateTime;
import org.openapitools.client.model.OuterComposite;
import org.openapitools.client.model.User;
import org.openapitools.client.model.XmlItem;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeEach;
import java.util.ArrayList;
import java.util.HashMap;
@ -21,11 +21,11 @@ import java.util.Map;
/**
* API tests for FakeApi
*/
public class FakeApiTest {
class FakeApiTest {
private FakeApi api;
@Before
@BeforeEach
public void setup() {
api = new ApiClient().buildClient(FakeApi.class);
}
@ -37,7 +37,7 @@ public class FakeApiTest {
* this route creates an XmlItem
*/
@Test
public void createXmlItemTest() {
void createXmlItemTest() {
XmlItem xmlItem = null;
// api.createXmlItem(xmlItem);
@ -51,7 +51,7 @@ public class FakeApiTest {
* Test serialization of outer boolean types
*/
@Test
public void fakeOuterBooleanSerializeTest() {
void fakeOuterBooleanSerializeTest() {
Boolean body = null;
// Boolean response = api.fakeOuterBooleanSerialize(body);
@ -65,7 +65,7 @@ public class FakeApiTest {
* Test serialization of object with outer number type
*/
@Test
public void fakeOuterCompositeSerializeTest() {
void fakeOuterCompositeSerializeTest() {
OuterComposite body = null;
// OuterComposite response = api.fakeOuterCompositeSerialize(body);
@ -79,7 +79,7 @@ public class FakeApiTest {
* Test serialization of outer number types
*/
@Test
public void fakeOuterNumberSerializeTest() {
void fakeOuterNumberSerializeTest() {
BigDecimal body = null;
// BigDecimal response = api.fakeOuterNumberSerialize(body);
@ -93,7 +93,7 @@ public class FakeApiTest {
* Test serialization of outer string types
*/
@Test
public void fakeOuterStringSerializeTest() {
void fakeOuterStringSerializeTest() {
String body = null;
// 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 &#x60;File&#x60;.
*/
@Test
public void testBodyWithFileSchemaTest() {
void testBodyWithFileSchemaTest() {
FileSchemaTestClass body = null;
// api.testBodyWithFileSchema(body);
@ -121,7 +121,7 @@ public class FakeApiTest {
*
*/
@Test
public void testBodyWithQueryParamsTest() {
void testBodyWithQueryParamsTest() {
String query = null;
User body = null;
// api.testBodyWithQueryParams(query, body);
@ -138,7 +138,7 @@ public class FakeApiTest {
* listing them out individually.
*/
@Test
public void testBodyWithQueryParamsTestQueryMap() {
void testBodyWithQueryParamsTestQueryMap() {
User body = null;
FakeApi.TestBodyWithQueryParamsQueryParams queryParams = new FakeApi.TestBodyWithQueryParamsQueryParams()
.query(null);
@ -153,7 +153,7 @@ public class FakeApiTest {
* To test \&quot;client\&quot; model
*/
@Test
public void testClientModelTest() {
void testClientModelTest() {
Client body = null;
// Client response = api.testClientModel(body);
@ -167,7 +167,7 @@ public class FakeApiTest {
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*/
@Test
public void testEndpointParametersTest() {
void testEndpointParametersTest() {
BigDecimal number = null;
Double _double = null;
String patternWithoutDelimiter = null;
@ -194,7 +194,7 @@ public class FakeApiTest {
* To test enum parameters
*/
@Test
public void testEnumParametersTest() {
void testEnumParametersTest() {
List<String> enumHeaderStringArray = null;
String enumHeaderString = null;
List<String> enumQueryStringArray = null;
@ -217,7 +217,7 @@ public class FakeApiTest {
* listing them out individually.
*/
@Test
public void testEnumParametersTestQueryMap() {
void testEnumParametersTestQueryMap() {
List<String> enumHeaderStringArray = null;
String enumHeaderString = null;
List<String> enumFormStringArray = null;
@ -238,7 +238,7 @@ public class FakeApiTest {
* Fake endpoint to test group parameters (optional)
*/
@Test
public void testGroupParametersTest() {
void testGroupParametersTest() {
Integer requiredStringGroup = null;
Boolean requiredBooleanGroup = null;
Long requiredInt64Group = null;
@ -259,7 +259,7 @@ public class FakeApiTest {
* listing them out individually.
*/
@Test
public void testGroupParametersTestQueryMap() {
void testGroupParametersTestQueryMap() {
Boolean requiredBooleanGroup = null;
Boolean booleanGroup = null;
FakeApi.TestGroupParametersQueryParams queryParams = new FakeApi.TestGroupParametersQueryParams()
@ -278,7 +278,7 @@ public class FakeApiTest {
*
*/
@Test
public void testInlineAdditionalPropertiesTest() {
void testInlineAdditionalPropertiesTest() {
Map<String, String> param = null;
// api.testInlineAdditionalProperties(param);
@ -292,7 +292,7 @@ public class FakeApiTest {
*
*/
@Test
public void testJsonFormDataTest() {
void testJsonFormDataTest() {
String param = null;
String param2 = null;
// api.testJsonFormData(param, param2);
@ -307,7 +307,7 @@ public class FakeApiTest {
* To test the collection format in query parameters
*/
@Test
public void testQueryParameterCollectionFormatTest() {
void testQueryParameterCollectionFormatTest() {
List<String> pipe = null;
List<String> ioutil = null;
List<String> http = null;
@ -327,7 +327,7 @@ public class FakeApiTest {
* listing them out individually.
*/
@Test
public void testQueryParameterCollectionFormatTestQueryMap() {
void testQueryParameterCollectionFormatTestQueryMap() {
FakeApi.TestQueryParameterCollectionFormatQueryParams queryParams = new FakeApi.TestQueryParameterCollectionFormatQueryParams()
.pipe(null)
.ioutil(null)

View File

@ -2,8 +2,8 @@ package org.openapitools.client.api;
import org.openapitools.client.ApiClient;
import org.openapitools.client.model.Client;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeEach;
import java.util.ArrayList;
import java.util.HashMap;
@ -13,11 +13,11 @@ import java.util.Map;
/**
* API tests for FakeClassnameTags123Api
*/
public class FakeClassnameTags123ApiTest {
class FakeClassnameTags123ApiTest {
private FakeClassnameTags123Api api;
@Before
@BeforeEach
public void setup() {
api = new ApiClient().buildClient(FakeClassnameTags123Api.class);
}
@ -29,7 +29,7 @@ public class FakeClassnameTags123ApiTest {
* To test class name in snake case
*/
@Test
public void testClassnameTest() {
void testClassnameTest() {
Client body = null;
// Client response = api.testClassname(body);

View File

@ -5,8 +5,8 @@ import java.io.File;
import org.openapitools.client.model.ModelApiResponse;
import org.openapitools.client.model.Pet;
import java.util.Set;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeEach;
import java.util.ArrayList;
import java.util.HashMap;
@ -16,11 +16,11 @@ import java.util.Map;
/**
* API tests for PetApi
*/
public class PetApiTest {
class PetApiTest {
private PetApi api;
@Before
@BeforeEach
public void setup() {
api = new ApiClient().buildClient(PetApi.class);
}
@ -32,7 +32,7 @@ public class PetApiTest {
*
*/
@Test
public void addPetTest() {
void addPetTest() {
Pet body = null;
// api.addPet(body);
@ -46,7 +46,7 @@ public class PetApiTest {
*
*/
@Test
public void deletePetTest() {
void deletePetTest() {
Long petId = null;
String apiKey = null;
// api.deletePet(petId, apiKey);
@ -61,7 +61,7 @@ public class PetApiTest {
* Multiple status values can be provided with comma separated strings
*/
@Test
public void findPetsByStatusTest() {
void findPetsByStatusTest() {
List<String> status = null;
// List<Pet> response = api.findPetsByStatus(status);
@ -77,7 +77,7 @@ public class PetApiTest {
* listing them out individually.
*/
@Test
public void findPetsByStatusTestQueryMap() {
void findPetsByStatusTestQueryMap() {
PetApi.FindPetsByStatusQueryParams queryParams = new PetApi.FindPetsByStatusQueryParams()
.status(null);
// 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.
*/
@Test
public void findPetsByTagsTest() {
void findPetsByTagsTest() {
Set<String> tags = null;
// Set<Pet> response = api.findPetsByTags(tags);
@ -107,7 +107,7 @@ public class PetApiTest {
* listing them out individually.
*/
@Test
public void findPetsByTagsTestQueryMap() {
void findPetsByTagsTestQueryMap() {
PetApi.FindPetsByTagsQueryParams queryParams = new PetApi.FindPetsByTagsQueryParams()
.tags(null);
// Set<Pet> response = api.findPetsByTags(queryParams);
@ -121,7 +121,7 @@ public class PetApiTest {
* Returns a single pet
*/
@Test
public void getPetByIdTest() {
void getPetByIdTest() {
Long petId = null;
// Pet response = api.getPetById(petId);
@ -135,7 +135,7 @@ public class PetApiTest {
*
*/
@Test
public void updatePetTest() {
void updatePetTest() {
Pet body = null;
// api.updatePet(body);
@ -149,7 +149,7 @@ public class PetApiTest {
*
*/
@Test
public void updatePetWithFormTest() {
void updatePetWithFormTest() {
Long petId = null;
String name = null;
String status = null;
@ -165,7 +165,7 @@ public class PetApiTest {
*
*/
@Test
public void uploadFileTest() {
void uploadFileTest() {
Long petId = null;
String additionalMetadata = null;
File file = null;
@ -181,7 +181,7 @@ public class PetApiTest {
*
*/
@Test
public void uploadFileWithRequiredFileTest() {
void uploadFileWithRequiredFileTest() {
Long petId = null;
File requiredFile = null;
String additionalMetadata = null;

View File

@ -2,8 +2,8 @@ package org.openapitools.client.api;
import org.openapitools.client.ApiClient;
import org.openapitools.client.model.Order;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeEach;
import java.util.ArrayList;
import java.util.HashMap;
@ -13,11 +13,11 @@ import java.util.Map;
/**
* API tests for StoreApi
*/
public class StoreApiTest {
class StoreApiTest {
private StoreApi api;
@Before
@BeforeEach
public void setup() {
api = new ApiClient().buildClient(StoreApi.class);
}
@ -29,7 +29,7 @@ public class StoreApiTest {
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
*/
@Test
public void deleteOrderTest() {
void deleteOrderTest() {
String orderId = null;
// api.deleteOrder(orderId);
@ -43,7 +43,7 @@ public class StoreApiTest {
* Returns a map of status codes to quantities
*/
@Test
public void getInventoryTest() {
void getInventoryTest() {
// Map<String, Integer> response = api.getInventory();
// TODO: test validations
@ -56,7 +56,7 @@ public class StoreApiTest {
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
*/
@Test
public void getOrderByIdTest() {
void getOrderByIdTest() {
Long orderId = null;
// Order response = api.getOrderById(orderId);
@ -70,7 +70,7 @@ public class StoreApiTest {
*
*/
@Test
public void placeOrderTest() {
void placeOrderTest() {
Order body = null;
// Order response = api.placeOrder(body);

View File

@ -2,8 +2,8 @@ package org.openapitools.client.api;
import org.openapitools.client.ApiClient;
import org.openapitools.client.model.User;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeEach;
import java.util.ArrayList;
import java.util.HashMap;
@ -13,11 +13,11 @@ import java.util.Map;
/**
* API tests for UserApi
*/
public class UserApiTest {
class UserApiTest {
private UserApi api;
@Before
@BeforeEach
public void setup() {
api = new ApiClient().buildClient(UserApi.class);
}
@ -29,7 +29,7 @@ public class UserApiTest {
* This can only be done by the logged in user.
*/
@Test
public void createUserTest() {
void createUserTest() {
User body = null;
// api.createUser(body);
@ -43,7 +43,7 @@ public class UserApiTest {
*
*/
@Test
public void createUsersWithArrayInputTest() {
void createUsersWithArrayInputTest() {
List<User> body = null;
// api.createUsersWithArrayInput(body);
@ -57,7 +57,7 @@ public class UserApiTest {
*
*/
@Test
public void createUsersWithListInputTest() {
void createUsersWithListInputTest() {
List<User> body = null;
// api.createUsersWithListInput(body);
@ -71,7 +71,7 @@ public class UserApiTest {
* This can only be done by the logged in user.
*/
@Test
public void deleteUserTest() {
void deleteUserTest() {
String username = null;
// api.deleteUser(username);
@ -85,7 +85,7 @@ public class UserApiTest {
*
*/
@Test
public void getUserByNameTest() {
void getUserByNameTest() {
String username = null;
// User response = api.getUserByName(username);
@ -99,7 +99,7 @@ public class UserApiTest {
*
*/
@Test
public void loginUserTest() {
void loginUserTest() {
String username = null;
String password = null;
// String response = api.loginUser(username, password);
@ -116,7 +116,7 @@ public class UserApiTest {
* listing them out individually.
*/
@Test
public void loginUserTestQueryMap() {
void loginUserTestQueryMap() {
UserApi.LoginUserQueryParams queryParams = new UserApi.LoginUserQueryParams()
.username(null)
.password(null);
@ -131,7 +131,7 @@ public class UserApiTest {
*
*/
@Test
public void logoutUserTest() {
void logoutUserTest() {
// api.logoutUser();
// TODO: test validations
@ -144,7 +144,7 @@ public class UserApiTest {
* This can only be done by the logged in user.
*/
@Test
public void updateUserTest() {
void updateUserTest() {
String username = null;
User body = null;
// api.updateUser(username, body);

View File

@ -22,22 +22,20 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesAnyType
*/
public class AdditionalPropertiesAnyTypeTest {
class AdditionalPropertiesAnyTypeTest {
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType();
/**
* Model tests for AdditionalPropertiesAnyType
*/
@Test
public void testAdditionalPropertiesAnyType() {
void testAdditionalPropertiesAnyType() {
// TODO: test AdditionalPropertiesAnyType
}
@ -45,7 +43,7 @@ public class AdditionalPropertiesAnyTypeTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@ -23,22 +23,20 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesArray
*/
public class AdditionalPropertiesArrayTest {
class AdditionalPropertiesArrayTest {
private final AdditionalPropertiesArray model = new AdditionalPropertiesArray();
/**
* Model tests for AdditionalPropertiesArray
*/
@Test
public void testAdditionalPropertiesArray() {
void testAdditionalPropertiesArray() {
// TODO: test AdditionalPropertiesArray
}
@ -46,7 +44,7 @@ public class AdditionalPropertiesArrayTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@ -22,22 +22,20 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesBoolean
*/
public class AdditionalPropertiesBooleanTest {
class AdditionalPropertiesBooleanTest {
private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean();
/**
* Model tests for AdditionalPropertiesBoolean
*/
@Test
public void testAdditionalPropertiesBoolean() {
void testAdditionalPropertiesBoolean() {
// TODO: test AdditionalPropertiesBoolean
}
@ -45,7 +43,7 @@ public class AdditionalPropertiesBooleanTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@ -24,22 +24,20 @@ import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesClass
*/
public class AdditionalPropertiesClassTest {
class AdditionalPropertiesClassTest {
private final AdditionalPropertiesClass model = new AdditionalPropertiesClass();
/**
* Model tests for AdditionalPropertiesClass
*/
@Test
public void testAdditionalPropertiesClass() {
void testAdditionalPropertiesClass() {
// TODO: test AdditionalPropertiesClass
}
@ -47,7 +45,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapString'
*/
@Test
public void mapStringTest() {
void mapStringTest() {
// TODO: test mapString
}
@ -55,7 +53,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapNumber'
*/
@Test
public void mapNumberTest() {
void mapNumberTest() {
// TODO: test mapNumber
}
@ -63,7 +61,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapInteger'
*/
@Test
public void mapIntegerTest() {
void mapIntegerTest() {
// TODO: test mapInteger
}
@ -71,7 +69,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapBoolean'
*/
@Test
public void mapBooleanTest() {
void mapBooleanTest() {
// TODO: test mapBoolean
}
@ -79,7 +77,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapArrayInteger'
*/
@Test
public void mapArrayIntegerTest() {
void mapArrayIntegerTest() {
// TODO: test mapArrayInteger
}
@ -87,7 +85,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapArrayAnytype'
*/
@Test
public void mapArrayAnytypeTest() {
void mapArrayAnytypeTest() {
// TODO: test mapArrayAnytype
}
@ -95,7 +93,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapMapString'
*/
@Test
public void mapMapStringTest() {
void mapMapStringTest() {
// TODO: test mapMapString
}
@ -103,7 +101,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'mapMapAnytype'
*/
@Test
public void mapMapAnytypeTest() {
void mapMapAnytypeTest() {
// TODO: test mapMapAnytype
}
@ -111,7 +109,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'anytype1'
*/
@Test
public void anytype1Test() {
void anytype1Test() {
// TODO: test anytype1
}
@ -119,7 +117,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'anytype2'
*/
@Test
public void anytype2Test() {
void anytype2Test() {
// TODO: test anytype2
}
@ -127,7 +125,7 @@ public class AdditionalPropertiesClassTest {
* Test the property 'anytype3'
*/
@Test
public void anytype3Test() {
void anytype3Test() {
// TODO: test anytype3
}

View File

@ -22,22 +22,20 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesInteger
*/
public class AdditionalPropertiesIntegerTest {
class AdditionalPropertiesIntegerTest {
private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger();
/**
* Model tests for AdditionalPropertiesInteger
*/
@Test
public void testAdditionalPropertiesInteger() {
void testAdditionalPropertiesInteger() {
// TODO: test AdditionalPropertiesInteger
}
@ -45,7 +43,7 @@ public class AdditionalPropertiesIntegerTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

View File

@ -23,22 +23,20 @@ import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Test;
/**
* Model tests for AdditionalPropertiesNumber
*/
public class AdditionalPropertiesNumberTest {
class AdditionalPropertiesNumberTest {
private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber();
/**
* Model tests for AdditionalPropertiesNumber
*/
@Test
public void testAdditionalPropertiesNumber() {
void testAdditionalPropertiesNumber() {
// TODO: test AdditionalPropertiesNumber
}
@ -46,7 +44,7 @@ public class AdditionalPropertiesNumberTest {
* Test the property 'name'
*/
@Test
public void nameTest() {
void nameTest() {
// TODO: test name
}

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